summaryrefslogtreecommitdiff
path: root/src/local/docker/docker-build-neo4j.sh
diff options
context:
space:
mode:
authorAlon Levy <alon@pobox.com>2015-04-25 21:01:07 +0300
committerAlon Levy <alon@pobox.com>2015-04-25 21:05:19 +0300
commita834ad073afc12fc5f329741026f2bf20b43a2da (patch)
treee4ba5585a7e47c4ca859206d8bb4e3838670151a /src/local/docker/docker-build-neo4j.sh
parentd766ecbf7a64c09e324a239493523bbda7041659 (diff)
docker changes: split neo4j and rhizi
changes: - rhizi and neo4j use separate containers, linked via docker link mechanism (environment files and shared bridge) - means debugging is faster using docker (still quicker by a little using run-local.sh / directly running python if no change to css/client) - rhizi docker now doesn't run deploy, it uses a volume from the deployment, similar to production scenario. Image still has multiple tools needed only for development (git, strace, ant, etc)
Diffstat (limited to 'src/local/docker/docker-build-neo4j.sh')
-rwxr-xr-xsrc/local/docker/docker-build-neo4j.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/local/docker/docker-build-neo4j.sh b/src/local/docker/docker-build-neo4j.sh
new file mode 100755
index 00000000..9be1ce94
--- /dev/null
+++ b/src/local/docker/docker-build-neo4j.sh
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+if [ ! -e .git ]; then
+ echo must run from git checkout directory, the one with the .git directory.
+ exit 0
+fi
+ROOT_DOCKER_DIR=$(dirname $(realpath $0))/../../../res/docker/
+NEO4J_TARBALL=$ROOT_DOCKER_DIR/neo4j-community-2.2.1-unix.tar.gz
+if [ ! -e $NEO4J_TARBALL ]; then
+ echo downloading neo4j community edition 2.2.1
+ wget http://neo4j.com/artifact.php?name=neo4j-community-2.2.1-unix.tar.gz -O$NEO4J_TARBALL
+fi
+docker build -t rhizi/neo4j:2.2.1 -f res/docker/3rd/neo4j-fedora/Dockerfile res/docker