From a59d2f33babe3aff7324987702af7a2419523f8e Mon Sep 17 00:00:00 2001 From: stdob Date: Tue, 4 Jul 2017 21:34:01 +0300 Subject: [PATCH 1/5] Listening address for the bolt connector Set the value of the listening address for the bolt connector through the env variable --- src/3.2/docker-entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/3.2/docker-entrypoint.sh b/src/3.2/docker-entrypoint.sh index 1fac31e9..2e17fcfb 100755 --- a/src/3.2/docker-entrypoint.sh +++ b/src/3.2/docker-entrypoint.sh @@ -33,7 +33,7 @@ if [ "$1" == "neo4j" ]; then : ${NEO4J_dbms_connectors_default__listen__address:="0.0.0.0"} : ${NEO4J_dbms_connector_http_listen__address:="0.0.0.0:7474"} : ${NEO4J_dbms_connector_https_listen__address:="0.0.0.0:7473"} - : ${NEO4J_dbms_connector_bolt_listen__address:="0.0.0.0:7687"} + : ${NEO4J_dbms_connector_bolt_listen__address:=${NEO4J_dbms_connector_bolt_listenAddress:-"0.0.0.0:7687"}} : ${NEO4J_ha_host_coordination:="$(hostname):5001"} : ${NEO4J_ha_host_data:="$(hostname):6001"} @@ -49,7 +49,8 @@ if [ "$1" == "neo4j" ]; then NEO4J_causalClustering_transactionListenAddress \ NEO4J_causalClustering_transactionAdvertisedAddress \ NEO4J_causalClustering_raftListenAddress \ - NEO4J_causalClustering_raftAdvertisedAddress + NEO4J_causalClustering_raftAdvertisedAddress \ + NEO4J_dbms_connector_bolt_listenAddress if [ -d /conf ]; then find /conf -type f -exec cp {} conf \; From fad8d2b2d71d18807eccaacf02cf062c30114a22 Mon Sep 17 00:00:00 2001 From: stdob Date: Tue, 4 Jul 2017 21:36:27 +0300 Subject: [PATCH 2/5] Listening address for the bolt connector Set the value of the listening address for the bolt connector through the env variable --- src/3.0/docker-entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/3.0/docker-entrypoint.sh b/src/3.0/docker-entrypoint.sh index 722e4133..401954a0 100755 --- a/src/3.0/docker-entrypoint.sh +++ b/src/3.0/docker-entrypoint.sh @@ -43,7 +43,7 @@ if [ "$1" == "neo4j" ]; then : ${NEO4J_dbms_connector_http_address:="0.0.0.0:7474"} : ${NEO4J_dbms_connector_https_address:="0.0.0.0:7473"} - : ${NEO4J_dbms_connector_bolt_address:="0.0.0.0:7687"} + : ${NEO4J_dbms_connector_bolt_listen__address:=${NEO4J_dbms_connector_bolt_listenAddress:-"0.0.0.0:7687"}} : ${NEO4J_ha_host_coordination:="$(hostname):5001"} : ${NEO4J_ha_host_data:="$(hostname):6001"} @@ -51,7 +51,8 @@ if [ "$1" == "neo4j" ]; then unset NEO4J_dbms_txLog_rotation_retentionPolicy NEO4J_UDC_SOURCE \ NEO4J_dbms_memory_heap_maxSize NEO4J_dbms_memory_heap_maxSize \ NEO4J_dbms_unmanagedExtensionClasses NEO4J_dbms_allowFormatMigration \ - NEO4J_ha_initialHosts + NEO4J_ha_initialHosts \ + NEO4J_dbms_connector_bolt_listenAddress if [ -d /conf ]; then find /conf -type f -exec cp {} conf \; From 6bc562e8f24076ca58caef973c3fde7b6b9fa238 Mon Sep 17 00:00:00 2001 From: stdob Date: Tue, 4 Jul 2017 21:37:32 +0300 Subject: [PATCH 3/5] Listening address for the bolt connector Set the value of the listening address for the bolt connector through the env variable --- src/3.1/docker-entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/3.1/docker-entrypoint.sh b/src/3.1/docker-entrypoint.sh index 1fac31e9..2e17fcfb 100755 --- a/src/3.1/docker-entrypoint.sh +++ b/src/3.1/docker-entrypoint.sh @@ -33,7 +33,7 @@ if [ "$1" == "neo4j" ]; then : ${NEO4J_dbms_connectors_default__listen__address:="0.0.0.0"} : ${NEO4J_dbms_connector_http_listen__address:="0.0.0.0:7474"} : ${NEO4J_dbms_connector_https_listen__address:="0.0.0.0:7473"} - : ${NEO4J_dbms_connector_bolt_listen__address:="0.0.0.0:7687"} + : ${NEO4J_dbms_connector_bolt_listen__address:=${NEO4J_dbms_connector_bolt_listenAddress:-"0.0.0.0:7687"}} : ${NEO4J_ha_host_coordination:="$(hostname):5001"} : ${NEO4J_ha_host_data:="$(hostname):6001"} @@ -49,7 +49,8 @@ if [ "$1" == "neo4j" ]; then NEO4J_causalClustering_transactionListenAddress \ NEO4J_causalClustering_transactionAdvertisedAddress \ NEO4J_causalClustering_raftListenAddress \ - NEO4J_causalClustering_raftAdvertisedAddress + NEO4J_causalClustering_raftAdvertisedAddress \ + NEO4J_dbms_connector_bolt_listenAddress if [ -d /conf ]; then find /conf -type f -exec cp {} conf \; From 3ce1e91f148d8c37ee993dae994a4628362b9175 Mon Sep 17 00:00:00 2001 From: stdob Date: Tue, 4 Jul 2017 21:38:31 +0300 Subject: [PATCH 4/5] Listening address for the bolt connector Set the value of the listening address for the bolt connector through the env variable --- src/3.3/docker-entrypoint.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/3.3/docker-entrypoint.sh b/src/3.3/docker-entrypoint.sh index 0daf9d8e..254739d4 100755 --- a/src/3.3/docker-entrypoint.sh +++ b/src/3.3/docker-entrypoint.sh @@ -33,7 +33,7 @@ if [ "$1" == "neo4j" ]; then : ${NEO4J_dbms_connectors_default__listen__address:="0.0.0.0"} : ${NEO4J_dbms_connector_http_listen__address:="0.0.0.0:7474"} : ${NEO4J_dbms_connector_https_listen__address:="0.0.0.0:7473"} - : ${NEO4J_dbms_connector_bolt_listen__address:="0.0.0.0:7687"} + : ${NEO4J_dbms_connector_bolt_listen__address:=${NEO4J_dbms_connector_bolt_listenAddress:-"0.0.0.0:7687"}} : ${NEO4J_ha_host_coordination:="$(hostname):5001"} : ${NEO4J_ha_host_data:="$(hostname):6001"} @@ -49,7 +49,8 @@ if [ "$1" == "neo4j" ]; then NEO4J_causalClustering_transactionListenAddress \ NEO4J_causalClustering_transactionAdvertisedAddress \ NEO4J_causalClustering_raftListenAddress \ - NEO4J_causalClustering_raftAdvertisedAddress + NEO4J_causalClustering_raftAdvertisedAddress \ + NEO4J_dbms_connector_bolt_listenAddress # Custom settings for dockerized neo4j : ${NEO4J_dbms_tx__log_rotation_retention__policy:=100M size} From 10adc6b1f91887a092015e7ee4e6dd6a1b5f3265 Mon Sep 17 00:00:00 2001 From: stdob Date: Tue, 4 Jul 2017 21:48:54 +0300 Subject: [PATCH 5/5] Fixed incorrect variable name for bolt address --- src/3.0/docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/3.0/docker-entrypoint.sh b/src/3.0/docker-entrypoint.sh index 401954a0..aecd0ee4 100755 --- a/src/3.0/docker-entrypoint.sh +++ b/src/3.0/docker-entrypoint.sh @@ -43,7 +43,7 @@ if [ "$1" == "neo4j" ]; then : ${NEO4J_dbms_connector_http_address:="0.0.0.0:7474"} : ${NEO4J_dbms_connector_https_address:="0.0.0.0:7473"} - : ${NEO4J_dbms_connector_bolt_listen__address:=${NEO4J_dbms_connector_bolt_listenAddress:-"0.0.0.0:7687"}} + : ${NEO4J_dbms_connector_bolt_address:=${NEO4J_dbms_connector_bolt_listenAddress:-"0.0.0.0:7687"}} : ${NEO4J_ha_host_coordination:="$(hostname):5001"} : ${NEO4J_ha_host_data:="$(hostname):6001"}