Add simplified local setup
[aai/test-config.git] / local-setup / src / main / docker / janusgraph / Dockerfile
1 FROM alpine:3.7
2
3 WORKDIR app/
4
5 RUN apk add --no-cache \
6   bash \
7   openjdk8 \
8   unzip \
9   wget
10
11 ENV PATH $PATH:/usr/lib/jvm/java-1.8-openjdk/bin/
12
13 ARG JANUS_VERSION=0.2.0
14 ARG JANUS_ARTIFACT=janusgraph-${JANUS_VERSION}-hadoop2
15
16 RUN wget -q --show-progress --progress=bar:force:noscroll \
17   http://github.com/JanusGraph/janusgraph/releases/download/v${JANUS_VERSION}/${JANUS_ARTIFACT}.zip && \
18   unzip ${JANUS_ARTIFACT}.zip && \
19   rm ${JANUS_ARTIFACT}.zip && \
20   mv ${JANUS_ARTIFACT} janusgraph
21
22 # WARN: Instruction above takes long time. Make best effort to insert additional commands below this comment
23
24 CMD ["./entrypoint.sh"]
25
26 COPY entrypoint.sh .
27
28 RUN chmod +x entrypoint.sh
29
30 ARG USER=janusz
31 ARG GROUP=aai
32
33 RUN addgroup ${GROUP} && adduser -D ${USER} ${GROUP} && chown -R ${USER}:${GROUP} .
34
35 USER ${USER}:${GROUP}
36
37 HEALTHCHECK --interval=40s --timeout=10s --retries=3 CMD janusgraph/bin/janusgraph.sh status