File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- COORDINATORS=(" 172.17.0.1:8529" " 172.17.0.1:8539" " 172.17.0.1:8549" )
3+ GW=172.28.0.1
4+ COORDINATORS=(" $GW :8529" " $GW :8539" " $GW :8549" )
45
56for a in ${COORDINATORS[*]} ; do
67 if curl -u root:test --silent --fail " http://$a " ; then
Original file line number Diff line number Diff line change @@ -16,6 +16,8 @@ SSL=${SSL:=false}
1616DATABASE_EXTENDED_NAMES=${DATABASE_EXTENDED_NAMES:= false}
1717
1818STARTER_DOCKER_IMAGE=docker.io/arangodb/arangodb-starter:latest
19+ GW=172.28.0.1
20+ docker network create arangodb --subnet 172.28.0.0/16
1921
2022# exit when any command fails
2123set -e
@@ -32,10 +34,10 @@ AUTHORIZATION_HEADER=$(cat "$LOCATION"/jwtHeader)
3234STARTER_ARGS=
3335SCHEME=http
3436ARANGOSH_SCHEME=http+tcp
35- COORDINATORS=(" 172.17.0.1 :8529" " 172.17.0.1 :8539" " 172.17.0.1 :8549" )
37+ COORDINATORS=(" $GW :8529" " $GW :8539" " $GW :8549" )
3638
3739if [ " $STARTER_MODE " == " single" ]; then
38- COORDINATORS=(" 172.17.0.1 :8529" )
40+ COORDINATORS=(" $GW :8529" )
3941fi
4042
4143if [ " $SSL " == " true" ]; then
@@ -66,7 +68,7 @@ docker run -d \
6668 $STARTER_ARGS \
6769 --docker.container=adb \
6870 --auth.jwt-secret=/jwtSecret \
69- --starter.address=172.17.0.1 \
71+ --starter.address=" ${GW} " \
7072 --docker.image=" ${DOCKER_IMAGE} " \
7173 --starter.local --starter.mode=${STARTER_MODE} --all.log.level=debug --all.log.output=+ --log.verbose
7274
Original file line number Diff line number Diff line change 1- arangodb.hosts =172.17 .0.1:8529
1+ arangodb.hosts =172.28 .0.1:8529
22arangodb.connections.max =20
33arangodb.acquireHostList =true
44arangodb.password =test
You can’t perform that action at this time.
0 commit comments