File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+ #
3+ # This exampe shows how to run an ArangoDB cluster all locally in docker on mac.
4+ #
5+ # By default this script uses the latest released ArangoDB docker image.
6+ # To use another image, set ARANGOIMAGE to the desired image, before calling this script.
7+ #
8+
9+ NSCONTAINER=arangodb-on-mac-ns
10+ STARTERCONTAINER=arangodb-on-mac
11+ ARANGOIMAGE=${ARANGOIMAGE:= arangodb/ arangodb: latest}
12+
13+ # Create network namespace container.
14+ # Make sure to expose all ports you want here.
15+ docker run -d --name=${NSCONTAINER} \
16+ -p 8528:8528 -p 8529:8529 -p 8534:8534 -p 8539:8539 \
17+ alpine:latest sleep 630720000
18+
19+ # Run the starter in a container using the network namespace of ${NSCONTAINER}
20+ docker run -it --name=${STARTERCONTAINER} --rm \
21+ --net=container:${NSCONTAINER} \
22+ -v /var/run/docker.sock:/var/run/docker.sock \
23+ arangodb/arangodb-starter \
24+ --docker.image=${ARANGOIMAGE} \
25+ --starter.address=localhost \
26+ --starter.local
27+
28+ # Remove namespace container
29+ docker rm -vf ${NSCONTAINER}
You can’t perform that action at this time.
0 commit comments