Permalink
Browse files

xadded neo4j server provisioning

  • Loading branch information...
1 parent ef3d720 commit a732e0716060750de72869a140278398aaa80d3f @jexp jexp committed with jexp May 3, 2011
Showing with 27 additions and 0 deletions.
  1. +2 −0 cloud_controller/config/cloud_controller.yml
  2. +25 −0 setup/vcap_setup
@@ -76,3 +76,5 @@ builtin_services:
token: "0xdeadbeef"
mongodb:
token: "0xdeadbeef"
+ neo4j:
+ token: "0xdeadbeef"
View
@@ -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

0 comments on commit a732e07

Please sign in to comment.