Skip to content

Commit 25cf15a

Browse files
author
Christophe
committed
publish on git
0 parents  commit 25cf15a

File tree

4 files changed

+96
-0
lines changed

4 files changed

+96
-0
lines changed

Diff for: dotcloud.yml

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
neo4j:
2+
type: custom
3+
buildscript: neo4j/builder
4+
systempackages:
5+
- lsof
6+
ports:
7+
www: http

Diff for: neo4j/builder

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/bash
2+
3+
4+
NEO4J_DIR="$HOME/neo4j"
5+
PACKAGE="http://dist.neo4j.org/neo4j-community-1.7-unix.tar.gz"
6+
7+
cd
8+
9+
if [ -d $NEO4J_DIR ]; then
10+
echo "Neo4j is already setup"
11+
else
12+
mkdir -p $NEO4J_DIR
13+
curl "$PACKAGE" | tar -zxf- --strip-components=1 -C "$NEO4J_DIR"
14+
fi
15+
16+
cat > ~/profile << EOF
17+
NEO4J_DIR="$NEO4J_DIR"
18+
EOF

Diff for: postinstall

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/bin/sh
2+
3+
# Source the INSTALL_DIRECTORY variable
4+
[ -f ~/profile ] && . ~/profile
5+
6+
sed -i 's/^org.neo4j.server.webserver.port=.*//' $NEO4J_DIR/conf/neo4j-server.properties
7+
sed -i 's/^org.neo4j.server.webserver.address=.*//' $NEO4J_DIR/conf/neo4j-server.properties
8+
echo org.neo4j.server.webserver.port=$PORT_WWW >> $NEO4J_DIR/conf/neo4j-server.properties
9+
echo org.neo4j.server.webserver.address=0.0.0.0 >> $NEO4J_DIR/conf/neo4j-server.properties
10+
11+
12+
#running script
13+
cat > ~/run <<EOF
14+
#!/bin/bash
15+
exec /usr/bin/java -cp /home/dotcloud/neo4j/lib/geronimo-jta_1.1_spec-1.1.1.jar:/home/dotcloud/neo4j/lib/lucene-core-3.5.0.jar:/home/dotcloud/neo4j/lib/neo4j-cypher-1.7.jar:/home/dotcloud/neo4j/lib/neo4j-graph-algo-1.7.jar:/home/dotcloud/neo4j/lib/neo4j-graph-matching-1.7.jar:/home/dotcloud/neo4j/lib/neo4j-jmx-1.7.jar:/home/dotcloud/neo4j/lib/neo4j-kernel-1.7.jar:/home/dotcloud/neo4j/lib/neo4j-lucene-index-1.7.jar:/home/dotcloud/neo4j/lib/neo4j-shell-1.7.jar:/home/dotcloud/neo4j/lib/neo4j-udc-1.7.jar:/home/dotcloud/neo4j/lib/org.apache.servicemix.bundles.jline-0.9.94_1.jar:/home/dotcloud/neo4j/lib/scala-library-2.9.0-1.jar:/home/dotcloud/neo4j/lib/server-api-1.7.jar:/home/dotcloud/neo4j/system/lib/antlr-2.7.7.jar:/home/dotcloud/neo4j/system/lib/asm-3.1.jar:/home/dotcloud/neo4j/system/lib/asm-analysis-3.2.jar:/home/dotcloud/neo4j/system/lib/asm-commons-3.2.jar:/home/dotcloud/neo4j/system/lib/asm-tree-3.2.jar:/home/dotcloud/neo4j/system/lib/asm-util-3.2.jar:/home/dotcloud/neo4j/system/lib/bcprov-jdk16-140.jar:/home/dotcloud/neo4j/system/lib/blueprints-core-1.2.jar:/home/dotcloud/neo4j/system/lib/blueprints-neo4j-graph-1.2.jar:/home/dotcloud/neo4j/system/lib/commons-beanutils-1.8.0.jar:/home/dotcloud/neo4j/system/lib/commons-beanutils-core-1.8.0.jar:/home/dotcloud/neo4j/system/lib/commons-collections-3.2.1.jar:/home/dotcloud/neo4j/system/lib/commons-configuration-1.6.jar:/home/dotcloud/neo4j/system/lib/commons-digester-1.8.1.jar:/home/dotcloud/neo4j/system/lib/commons-io-1.4.jar:/home/dotcloud/neo4j/system/lib/commons-lang-2.4.jar:/home/dotcloud/neo4j/system/lib/commons-logging-1.1.1.jar:/home/dotcloud/neo4j/system/lib/gremlin-groovy-1.5.jar:/home/dotcloud/neo4j/system/lib/gremlin-java-1.5.jar:/home/dotcloud/neo4j/system/lib/groovy-1.8.5.jar:/home/dotcloud/neo4j/system/lib/jackson-core-asl-1.8.3.jar:/home/dotcloud/neo4j/system/lib/jackson-jaxrs-1.8.3.jar:/home/dotcloud/neo4j/system/lib/jackson-mapper-asl-1.8.3.jar:/home/dotcloud/neo4j/system/lib/jansi-1.5.jar:/home/dotcloud/neo4j/system/lib/jcl-over-slf4j-1.6.1.jar:/home/dotcloud/neo4j/system/lib/jersey-core-1.9.jar:/home/dotcloud/neo4j/system/lib/jersey-multipart-1.9.jar:/home/dotcloud/neo4j/system/lib/jersey-server-1.9.jar:/home/dotcloud/neo4j/system/lib/jettison-1.3.jar:/home/dotcloud/neo4j/system/lib/jetty-6.1.25.jar:/home/dotcloud/neo4j/system/lib/jetty-util-6.1.25.jar:/home/dotcloud/neo4j/system/lib/jsr311-api-1.1.1.jar:/home/dotcloud/neo4j/system/lib/log4j-over-slf4j-1.6.1.jar:/home/dotcloud/neo4j/system/lib/mimepull-1.6.jar:/home/dotcloud/neo4j/system/lib/neo4j-cypher-plugin-1.7.jar:/home/dotcloud/neo4j/system/lib/neo4j-gremlin-plugin-1.7.jar:/home/dotcloud/neo4j/system/lib/neo4j-server-1.7-static-web.jar:/home/dotcloud/neo4j/system/lib/neo4j-server-1.7.jar:/home/dotcloud/neo4j/system/lib/pipes-1.0.jar:/home/dotcloud/neo4j/system/lib/rrd4j-2.0.7.jar:/home/dotcloud/neo4j/system/lib/servlet-api-2.5-20081211.jar:/home/dotcloud/neo4j/system/lib/slf4j-api-1.6.1.jar:/home/dotcloud/neo4j/system/lib/slf4j-jdk14-1.6.1.jar:/home/dotcloud/neo4j/system/lib/stax-api-1.0.1.jar -server -XX:+DisableExplicitGC -Dorg.neo4j.server.properties=conf/neo4j-server.properties -Djava.util.logging.config.file=conf/logging.properties -Dfile.encoding=UTF-8 -Dlog4j.configuration=file:conf/log4j.properties \
16+
-Dorg.neo4j.server.properties="/home/dotcloud/neo4j/conf/neo4j-server.properties" \
17+
-Djava.util.logging.config.file="/home/dotcloud/neo4j/conf/logging.properties" \
18+
-Dneo4j.home="/home/dotcloud/neo4j/" -Dneo4j.instance="/home/dotcloud/neo4j/" \
19+
org.neo4j.server.Bootstrapper
20+
EOF
21+
chmod +x ~/run

Diff for: readme.rst

+50
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
Neo4J 1.7 On DotCloud (ALPHA)
2+
=========================
3+
4+
This is an **ALPHA** (i.e., not production-ready) Neo4j stack for DotCloud.
5+
6+
based on https://raw.github.com/jpetazzo/neo4j-on-dotcloud-ALPHA
7+
8+
How It Works
9+
------------
10+
11+
It retrieve Neo4j community edition tarball, unpacks it, and adds a little
12+
bit of scaffolding (custom scripts) to run it under dotCloud.
13+
The build is not totally dotCloud-compliant (it uses all the default build
14+
options, instead of trying to setup the logs/data/etc. directories in the
15+
proper place).
16+
17+
Again: **don't use this for production!**
18+
19+
Proper Neo4j support will come soon.
20+
21+
22+
How To Use It (Standalone)
23+
--------------------------
24+
25+
Just use our (un)patented Clone-And-DotCloud-Push method::
26+
27+
28+
dotcloud push neo4j17-on-dotcloud
29+
30+
At the end of the push, the URL to the Neo4j administration interface
31+
will be shown.
32+
33+
34+
How To Use It (In Your App)
35+
---------------------------
36+
37+
Add the ``dotcloud.yml`` supplied here to your own ``dotcloud.yml``,
38+
and copy the ``neo4j`` directory to your repository as well. Push as
39+
usual. Rejoice (but remember not to put any important stuff into
40+
your Neo4j DB yet).
41+
42+
43+
Authentication
44+
--------------
45+
46+
By default, there is **NO** authentication. Anyone knowing its URL
47+
can acccess your Neo4j DB. You can setup authentication yourself if
48+
you need to. And of course, when Neo4j will be officially supported,
49+
authentication will be pre-configured by default, like for other
50+
dotCloud-supported database stacks.

0 commit comments

Comments
 (0)