Created
August 18, 2014 02:51
-
-
Save simpsonjulian/1fcda1d672923cef1295 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM centos:centos6 | |
# Would prefer headless, but not available in CentOS6 | |
RUN yum -y install wget java-1.7.0-openjdk scl-utils redhat-lsb-core | |
RUN wget -qO- http://dev.centos.org/centos/6/SCL/scl.repo >> /etc/yum.repos.d/centos.scl.repo | |
RUN yum -y install python27-python python27-python-setuptools | |
### Neo4j RPM | |
RUN wget http://debian.neo4j.org/neotechnology.gpg.key -O /tmp/neo4j.key && rpm --import /tmp/neo4j.key && rm -f /tmp/neo4j.key | |
RUN echo '[neo4j]' > /etc/yum.repos.d/neo4j.repo && echo 'name=Neo4j Yum Repo' >> /etc/yum.repos.d/neo4j.repo && echo 'baseurl=http://yum.neo4j.org' >> /etc/yum.repos.d/neo4j.repo && echo 'enabled=1' >> /etc/yum.repos.d/neo4j.repo && echo 'gpgcheck=1' >> /etc/yum.repos.d/neo4j.repo && yum -y install neo4j |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
yum install -y which # that's a missing dependency | |
service neo4j start | |
cat <<EOF > /tmp/test.json | |
{"query" : "create (alice {name:'Alice Diffie'})-[:EMAILS]->(bob {name:'Bob Hellman'});"} | |
EOF | |
curl -d @/tmp/test.json -H accept:applicaton/json -H X-Stream:true -H content-type:application/json http://localhost:7474/db/data/cypher | |
service neo4j stop | |
sleep 10 | |
service neo4j start | |
sleep 10 | |
/usr/share/neo4j/bin/neo4j-shell -c "match n-[r:EMAILS]-m return n,r,m;" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment