Loading scripts/docker-entrypoint.sh +0 −8 Original line number Diff line number Diff line #!/bin/bash set -e if [ -z "$(ls -A ${GEOSERVER_DATA_DIR})" ] then echo "Data dir is empty, creating data folders structure" Loading @@ -18,14 +16,8 @@ echo "Discovering other nodes in cluster..." serviceNodesIps=$(dig ${CLUSTER_DISCOVERY_URL} +short) echo "${serviceNodesIps}" myIp=$(dig ${HOSTNAME} +short) echo "My IP: ${myIp}" for nodeIp in ${serviceNodesIps} do if [ "${nodeIp}" == "${myIp}" ];then continue; fi clusterNodesIps="${clusterNodesIps}<member>${nodeIp}</member>" done export CLUSTER_NODES_IPS_TAGS="${clusterNodesIps}" Loading scripts/hazelcast.template +5 −4 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-2.3.xsd" xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <hazelcast xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hazelcast.com/schema/config http://www.hazelcast.com/schema/config/hazelcast-config-3.3.xsd" xmlns="http://www.hazelcast.com/schema/config"> <group> <name>${CLUSTER_NAME}</name> <password>${CLUSTER_PASSWORD}</password> Loading @@ -16,7 +17,7 @@ <join> <multicast enabled="false"></multicast> <tcp-ip enabled="true" connection-timeout-seconds="30"> <member-list>${CLUSTER_NODES_IPS_TAGS}</member-list> <members>${CLUSTER_NODES_IPS_TAGS}</members> </tcp-ip> </join> <interfaces enabled="true"> Loading Loading
scripts/docker-entrypoint.sh +0 −8 Original line number Diff line number Diff line #!/bin/bash set -e if [ -z "$(ls -A ${GEOSERVER_DATA_DIR})" ] then echo "Data dir is empty, creating data folders structure" Loading @@ -18,14 +16,8 @@ echo "Discovering other nodes in cluster..." serviceNodesIps=$(dig ${CLUSTER_DISCOVERY_URL} +short) echo "${serviceNodesIps}" myIp=$(dig ${HOSTNAME} +short) echo "My IP: ${myIp}" for nodeIp in ${serviceNodesIps} do if [ "${nodeIp}" == "${myIp}" ];then continue; fi clusterNodesIps="${clusterNodesIps}<member>${nodeIp}</member>" done export CLUSTER_NODES_IPS_TAGS="${clusterNodesIps}" Loading
scripts/hazelcast.template +5 −4 Original line number Diff line number Diff line <?xml version="1.0" encoding="UTF-8"?> <hazelcast xsi:schemaLocation="http://www.hazelcast.com/schema/config hazelcast-config-2.3.xsd" xmlns="http://www.hazelcast.com/schema/config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <hazelcast xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.hazelcast.com/schema/config http://www.hazelcast.com/schema/config/hazelcast-config-3.3.xsd" xmlns="http://www.hazelcast.com/schema/config"> <group> <name>${CLUSTER_NAME}</name> <password>${CLUSTER_PASSWORD}</password> Loading @@ -16,7 +17,7 @@ <join> <multicast enabled="false"></multicast> <tcp-ip enabled="true" connection-timeout-seconds="30"> <member-list>${CLUSTER_NODES_IPS_TAGS}</member-list> <members>${CLUSTER_NODES_IPS_TAGS}</members> </tcp-ip> </join> <interfaces enabled="true"> Loading