Wednesday, March 5, 2014

Installing Neo4J on Ubuntu

A simple dockerfile for this purpose. Not sure for the last lines. Fix me if I'm wrong.


FROM dockerfile/ubuntu

# Install Java
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:webupd8team/java
RUN apt-get update
RUN echo debconf shared/accepted-oracle-license-v1-1 select true | debconf-set-selections
RUN echo debconf shared/accepted-oracle-license-v1-1 seen true | debconf-set-selections
RUN apt-get install -y oracle-java7-installer



RUN wget "http://download.neo4j.org/artifact?edition=community&version=1.9.6&distribution=tarball&dlid=notread"
RUN mv artifact\?edition\=community\&version\=1.9.6\&distribution\=tarball\&dlid\=notread neo.tar.gz
RUN tar xvfz neo.tar.gz


RUN mv neo4j-community-1.9.6 /opt/neo4j-community-1.9.6
RUN /opt/neo4j-community-1.9.6/bin/neo4j install



CMD service neo4j-service start



No comments: