Public | Automated Build

Last pushed: 2 years ago
Dockerfile
# # Dockerizing Neo4j graph database (http://www.github.com/kbastani/docker-neo4j) # FROM java:openjdk-8-jdk MAINTAINER K.B. Name <kb@socialmoon.com> ENV HDFS_HOST hdfs://hdfs:9000 # Install Neo4j RUN wget -O - http://debian.neo4j.org/neotechnology.gpg.key | apt-key add - && \ echo 'deb http://debian.neo4j.org/repo stable/' > /etc/apt/sources.list.d/neo4j.list && \ apt-get update ; apt-get install neo4j -y WORKDIR /var/lib/neo4j # Copy graph analytics plugin COPY plugins /var/lib/neo4j/plugins # Copy configurations COPY conf/neo4j /var/lib/neo4j/conf # Copy the bootstrap shell script and set permissions COPY sbin/bootstrap.sh /etc/bootstrap.sh RUN chown root:root /etc/bootstrap.sh && \ chmod 700 /etc/bootstrap.sh # Customize configurations RUN apt-get clean && \ sed -i "s|data/graph.db|/opt/data/graph.db|g" /var/lib/neo4j/conf/neo4j-server.properties && \ sed -i "s|dbms.security.auth_enabled=true|dbms.security.auth_enabled=false|g" /var/lib/neo4j/conf/neo4j-server.properties && \ sed -i "s|#org.neo4j.server.webserver.address|org.neo4j.server.webserver.address|g" /var/lib/neo4j/conf/neo4j-server.properties && \ sed -i "s|#org.neo4j.server.thirdparty_jaxrs_classes=org.neo4j.examples.server.unmanaged=/examples/unmanaged|org.neo4j.server.thirdparty_jaxrs_classes=extension=/service|g" /var/lib/neo4j/conf/neo4j-server.properties # Mount a volume for persistent plugins VOLUME /var/lib/neo4j/plugins RUN wget -c https://github.com/thinkaurelius/neo4j-gremlin-plugin/releases/download/2.1.6/neo4j-gremlin-plugin-tp3-2.1.6-server-plugin.zip RUN unzip neo4j-gremlin-plugin-tp3-2.1.6-server-plugin.zip RUN rm -f neo4j-gremlin-plugin-tp3-2.1.6-server-plugin.zip RUN wget -c https://github.com/niclashoyer/neo4j-sparql-extension/releases/download/1.0.0/neo4j-sparql-extension-1.0.0.jar # Expose the Neo4j browser to the host OS on port 7474 and 1337 EXPOSE 7474 EXPOSE 1337 # Mount a volume for persistent data VOLUME /opt/data # Set the bootstrap script on container run ENV BOOTSTRAP /etc/bootstrap.sh CMD ["/etc/bootstrap.sh", "-d"]
Source Repository