forked from neo4j-contrib/neo4j-graph-algorithms
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
30 lines (24 loc) · 1.07 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM neo4j:3.3-enterprise as neo4j
RUN apk --update add maven openjdk8
RUN echo "dbms.connectors.default_listen_address=0.0.0.0" >> /var/lib/neo4j/conf/neo4j.conf
RUN echo "dbms.connector.http.listen_address=0.0.0.0:7474" >> /var/lib/neo4j/conf/neo4j.conf
RUN echo "dbms.connector.https.listen_address=0.0.0.0:7473" >> /var/lib/neo4j/conf/neo4j.conf
RUN echo "dbms.connector.bolt.listen_address=0.0.0.0:7687" >> /var/lib/neo4j/conf/neo4j.conf
RUN echo "dbms.security.procedures.unrestricted=algo.*,apoc.*" >> /var/lib/neo4j/conf/neo4j.conf
WORKDIR /neo4j-graph-algorithms/
ADD algo/pom.xml algo/
ADD core/pom.xml core/
ADD benchmark/pom.xml benchmark/
ADD tests/pom.xml tests/
ADD pom.xml .
RUN mvn verify clean --fail-never
ADD . /neo4j-graph-algorithms/
RUN mvn -Dmaven.test.skip=true clean install
RUN cp algo/target/graph-algorithms-*.jar /var/lib/neo4j/plugins/
RUN cp apoc-3.3.0.2-all.jar /var/lib/neo4j/plugins/
EXPOSE 7474 7473 7687
WORKDIR /var/lib/neo4j
VOLUME /data
COPY --from=neo4j docker-entrypoint.sh /docker-entrypoint.sh
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["neo4j"]