forked from JanusGraph/janusgraph-docker
/
Dockerfile
65 lines (55 loc) · 2.62 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# NOTE: THIS FILE IS GENERATED VIA "update.sh"
#
# PLEASE DO NOT EDIT IT DIRECTLY.
#
FROM openjdk:8-jdk
ARG CREATED
ARG REVISION
ARG JANUS_VERSION=0.3.1
ENV JANUS_VERSION=${JANUS_VERSION} \
JANUS_HOME=/opt/janusgraph \
JANUS_CONFIG_DIR=/etc/opt/janusgraph \
JANUS_DATA_DIR=/var/lib/janusgraph \
JANUS_STORAGE_TIMEOUT=60 \
JANUS_PROPS_TEMPLATE=berkeleyje-lucene \
janusgraph.index.search.directory=/var/lib/janusgraph/index \
janusgraph.storage.directory=/var/lib/janusgraph/data \
gremlinserver.graph=/etc/opt/janusgraph/janusgraph.properties \
gremlinserver.threadPoolWorker=1 \
gremlinserver.gremlinPool=8
RUN groupadd -r janusgraph --gid=999 && \
useradd -r -g janusgraph --uid=999 janusgraph && \
curl -fSL https://github.com/JanusGraph/janusgraph/releases/download/v${JANUS_VERSION}/janusgraph-${JANUS_VERSION}-hadoop2.zip -o janusgraph.zip && \
curl -fSL https://github.com/JanusGraph/janusgraph/releases/download/v${JANUS_VERSION}/janusgraph-${JANUS_VERSION}-hadoop2.zip.asc -o janusgraph.zip.asc && \
curl -fSL https://github.com/JanusGraph/janusgraph/releases/download/v${JANUS_VERSION}/KEYS -o KEYS && \
gpg --import KEYS && \
gpg --batch --verify janusgraph.zip.asc janusgraph.zip && \
unzip janusgraph.zip && \
mv janusgraph-${JANUS_VERSION}-hadoop2 /opt/janusgraph && \
rm janusgraph.zip && \
rm janusgraph.zip.asc && \
rm KEYS && \
rm -rf ${JANUS_HOME}/elasticsearch && \
rm -rf ${JANUS_HOME}/javadocs && \
rm -rf ${JANUS_HOME}/log && \
rm -rf ${JANUS_HOME}/examples
COPY docker-entrypoint.sh /usr/local/bin/
COPY conf/janusgraph-berkeleyje-lucene-server.properties conf/log4j-server.properties ${JANUS_HOME}/conf/gremlin-server/
COPY scripts/remote-connect.groovy ${JANUS_HOME}/scripts/
RUN chmod 755 /usr/local/bin/docker-entrypoint.sh && \
chown -R janusgraph:janusgraph ${JANUS_HOME}
EXPOSE 8182
WORKDIR ${JANUS_HOME}
ENTRYPOINT [ "docker-entrypoint.sh" ]
CMD [ "janusgraph" ]
LABEL org.opencontainers.image.title="JanusGraph Docker Image" \
org.opencontainers.image.description="Official JanusGraph Docker image" \
org.opencontainers.image.url="https://janusgraph.org/" \
org.opencontainers.image.documentation="https://docs.janusgraph.org/${JANUS_VERSION}/index.html" \
org.opencontainers.image.revision=${REVISION} \
org.opencontainers.image.source="https://github.com/JanusGraph/janusgraph-docker/" \
org.opencontainers.image.vendor="JanusGraph" \
org.opencontainers.image.version=${JANUS_VERSION} \
org.opencontainers.image.created=${CREATED} \
org.opencontainers.image.license="Apache-2.0"