-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathDockerfile.janus
36 lines (27 loc) · 1.29 KB
/
Dockerfile.janus
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
31
32
33
34
35
36
FROM openjdk:8-jdk
LABEL maintainer="Markus Mayer <widemeadows@gmail.com>"
ARG VERSION=0.4.0
ARG HADOOP=hadoop2
RUN apt-get update && \
apt-get install -y wget unzip htop && \
mkdir /workspace && \
cd /workspace && \
wget https://github.com/JanusGraph/janusgraph/releases/download/v$VERSION/janusgraph-$VERSION-$HADOOP.zip && \
unzip janusgraph-$VERSION-$HADOOP.zip && \
rm janusgraph-$VERSION-$HADOOP.zip && \
mv janusgraph-* janusgraph
WORKDIR /workspace/janusgraph
# Cypher for Gremlin
# https://github.com/opencypher/cypher-for-gremlin
ARG CYPHER_GREMLIN_VERSION=1.0.0
RUN bin/gremlin-server.sh install org.opencypher.gremlin cypher-gremlin-server-plugin $CYPHER_GREMLIN_VERSION
RUN bin/gremlin-server.sh install org.opencypher.gremlin cypher-gremlin-console-plugin $CYPHER_GREMLIN_VERSION
# Gremlin-Python
RUN bin/gremlin-server.sh install org.apache.tinkerpop gremlin-python 3.4.1
COPY janusgraph/gremlin-server.yaml /workspace/janusgraph/conf/gremlin-server/gremlin-server.yaml
COPY janusgraph/*.properties /workspace/janusgraph/conf/
# Example graphs and data
COPY janusgraph/*.groovy /workspace/janusgraph/scripts/
COPY janusgraph/data/*.graphml /workspace/janusgraph/data/
COPY janusgraph/run.sh /workspace/janusgraph
CMD ["/bin/bash", "-e", "/workspace/janusgraph/run.sh"]