diff options
Diffstat (limited to 'local-setup/src/main/docker/janusgraph')
-rw-r--r-- | local-setup/src/main/docker/janusgraph/Dockerfile | 37 | ||||
-rwxr-xr-x | local-setup/src/main/docker/janusgraph/entrypoint.sh | 24 |
2 files changed, 0 insertions, 61 deletions
diff --git a/local-setup/src/main/docker/janusgraph/Dockerfile b/local-setup/src/main/docker/janusgraph/Dockerfile deleted file mode 100644 index 76c3628..0000000 --- a/local-setup/src/main/docker/janusgraph/Dockerfile +++ /dev/null @@ -1,37 +0,0 @@ -FROM alpine:3.7 - -WORKDIR app/ - -RUN apk add --no-cache \ - bash \ - openjdk8 \ - unzip \ - wget - -ENV PATH $PATH:/usr/lib/jvm/java-1.8-openjdk/bin/ - -ARG JANUS_VERSION=0.2.0 -ARG JANUS_ARTIFACT=janusgraph-${JANUS_VERSION}-hadoop2 - -RUN wget -q --show-progress --progress=bar:force:noscroll \ - http://github.com/JanusGraph/janusgraph/releases/download/v${JANUS_VERSION}/${JANUS_ARTIFACT}.zip && \ - unzip ${JANUS_ARTIFACT}.zip && \ - rm ${JANUS_ARTIFACT}.zip && \ - mv ${JANUS_ARTIFACT} janusgraph - -# WARN: Instruction above takes long time. Make best effort to insert additional commands below this comment - -CMD ["./entrypoint.sh"] - -COPY entrypoint.sh . - -RUN chmod +x entrypoint.sh - -ARG USER=janusz -ARG GROUP=aai - -RUN addgroup ${GROUP} && adduser -D ${USER} ${GROUP} && chown -R ${USER}:${GROUP} . - -USER ${USER}:${GROUP} - -HEALTHCHECK --interval=40s --timeout=10s --retries=3 CMD janusgraph/bin/janusgraph.sh status
\ No newline at end of file diff --git a/local-setup/src/main/docker/janusgraph/entrypoint.sh b/local-setup/src/main/docker/janusgraph/entrypoint.sh deleted file mode 100755 index 8108866..0000000 --- a/local-setup/src/main/docker/janusgraph/entrypoint.sh +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/bash - -# run short-living command and prevent docker from stopping - -JANUS_EXEC="janusgraph/bin/janusgraph.sh" - -onStart() { - ${JANUS_EXEC} start -} - -onStop() { - ${JANUS_EXEC} stop -} - -waitLoop() { - tail -f /dev/null & - wait $! -} - -trap 'onStop; exit 0' SIGTERM SIGINT - -onStart || exit $? - -waitLoop
\ No newline at end of file |