Skip to content

Commit

Permalink
Merge pull request #127 from spacecowboy/tini
Browse files Browse the repository at this point in the history
Wrap entrypoint with tini
  • Loading branch information
spacecowboy committed Mar 16, 2018
2 parents 98434fe + 8fb0c17 commit a5e3e35
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 9 deletions.
5 changes: 3 additions & 2 deletions src/3.1/Dockerfile
Expand Up @@ -2,7 +2,8 @@ FROM openjdk:8-jre-alpine

RUN apk add --no-cache --quiet \
bash \
curl
curl \
tini

ENV NEO4J_SHA256=%%NEO4J_SHA%% \
NEO4J_TARBALL=%%NEO4J_TARBALL%%
Expand All @@ -29,5 +30,5 @@ COPY docker-entrypoint.sh /docker-entrypoint.sh

EXPOSE 7474 7473 7687

ENTRYPOINT ["/docker-entrypoint.sh"]
ENTRYPOINT ["/sbin/tini", "-g", "--", "/docker-entrypoint.sh"]
CMD ["neo4j"]
5 changes: 3 additions & 2 deletions src/3.2/Dockerfile
Expand Up @@ -2,7 +2,8 @@ FROM openjdk:8-jre-alpine

RUN apk add --no-cache --quiet \
bash \
curl
curl \
tini

ENV NEO4J_SHA256=%%NEO4J_SHA%% \
NEO4J_TARBALL=%%NEO4J_TARBALL%%
Expand All @@ -29,5 +30,5 @@ COPY docker-entrypoint.sh /docker-entrypoint.sh

EXPOSE 7474 7473 7687

ENTRYPOINT ["/docker-entrypoint.sh"]
ENTRYPOINT ["/sbin/tini", "-g", "--", "/docker-entrypoint.sh"]
CMD ["neo4j"]
5 changes: 3 additions & 2 deletions src/3.3/Dockerfile
Expand Up @@ -2,7 +2,8 @@ FROM openjdk:8-jre-alpine

RUN apk add --no-cache --quiet \
bash \
curl
curl \
tini

ENV NEO4J_SHA256=%%NEO4J_SHA%% \
NEO4J_TARBALL=%%NEO4J_TARBALL%% \
Expand Down Expand Up @@ -30,5 +31,5 @@ COPY docker-entrypoint.sh /docker-entrypoint.sh

EXPOSE 7474 7473 7687

ENTRYPOINT ["/docker-entrypoint.sh"]
ENTRYPOINT ["/sbin/tini", "-g", "--", "/docker-entrypoint.sh"]
CMD ["neo4j"]
5 changes: 3 additions & 2 deletions src/3.4/Dockerfile
Expand Up @@ -2,7 +2,8 @@ FROM openjdk:8-jre-alpine

RUN apk add --no-cache --quiet \
bash \
curl
curl \
tini

ENV NEO4J_SHA256=%%NEO4J_SHA%% \
NEO4J_TARBALL=%%NEO4J_TARBALL%% \
Expand Down Expand Up @@ -30,5 +31,5 @@ COPY docker-entrypoint.sh /docker-entrypoint.sh

EXPOSE 7474 7473 7687

ENTRYPOINT ["/docker-entrypoint.sh"]
ENTRYPOINT ["/sbin/tini", "-g", "--", "/docker-entrypoint.sh"]
CMD ["neo4j"]
3 changes: 2 additions & 1 deletion test/container/Dockerfile
@@ -1,5 +1,6 @@
FROM alpine

RUN apk update && apk add --no-cache curl bash util-linux grep
RUN apk update && apk add --no-cache curl bash util-linux grep tini

ENTRYPOINT ["/sbin/tini", "-g", "--"]
CMD ["bash", "-c", "while true; do sleep 120; done"]

0 comments on commit a5e3e35

Please sign in to comment.