Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

xadded neo4j server provisioning

  • Loading branch information...
commit a732e0716060750de72869a140278398aaa80d3f 1 parent ef3d720
@jexp jexp authored
Showing with 27 additions and 0 deletions.
  1. +2 −0  cloud_controller/config/cloud_controller.yml
  2. +25 −0 setup/vcap_setup
View
2  cloud_controller/config/cloud_controller.yml
@@ -76,3 +76,5 @@ builtin_services:
token: "0xdeadbeef"
mongodb:
token: "0xdeadbeef"
+ neo4j:
+ token: "0xdeadbeef"
View
25 setup/vcap_setup
@@ -337,6 +337,31 @@ else
echo "MongoDB Server (version $MONGODB_VERSION) is current"
fi
+NEO4J_VERSION=community-1.4.M01
+NEO4J_DIST_FILE=neo4j-community-1.4.M01-unix.tar.gz
+NEO4J_SERVICE_DIR=/var/vcap/services/neo4j
+
+if [[ -f "$NEO4J_SERVICE_DIR/$NEO4J_DIST_FILE" ]]; then
+ echo "Neo4j ($NEO4J_VERSION) is current"
+else
+read -p "Should I add Neo4j Server? [y/N] "
+if [[ $REPLY =~ ^[yY]$ ]]; then
+ echo "Installing Neo4j Server (version $NEO4J_VERSION)"
+ pushd .
+ mkdir -p $NEO4J_SERVICE_DIR
+ cd $NEO4J_SERVICE_DIR
+ curl -O http://dist.neo4j.org/$NEO4J_DIST_FILE
+ rm neo4j-server.tgz
+ ln -s $NEO4J_DIST_FILE neo4j-server.tgz
+# curl -O http://dist.neo4j.org/neo4j-hosting-extension-$NEO4J_VERSION.jar
+ cp /home/cloud/neo4j-hosting-extension-0.6-SNAPSHOT.jar neo4j-hosting-extension-$NEO4J_VERSION.jar
+ rm neo4j-hosting-extension.jar
+ ln -s neo4j-hosting-extension-$NEO4J_VERSION.jar neo4j-hosting-extension.jar
+ popd
+fi
+fi
+
+
echo -e "\n\nYou should be good to go!!\n\n"
ruby -v
Please sign in to comment.
Something went wrong with that request. Please try again.