Skip to content

Commit

Permalink
Moved version arg to env in dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisjwwalker committed Jun 15, 2022
1 parent 81954b5 commit 19b254a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
FROM adoptopenjdk/openjdk14

ARG VERSION
ARG GK_VERSION
ENV VERSION $GK_VERSION

RUN mkdir -p /opt/docker
WORKDIR /opt/docker
Expand All @@ -9,5 +10,6 @@ RUN echo $VERSION

COPY ./target/universal/gatekeeper-${VERSION}.tgz /opt/docker/
RUN tar zxvf gatekeeper-${VERSION}.tgz -C /opt/docker/
RUN rm /opt/docker/gatekeeper-${VERSION}.tgz

ENTRYPOINT /opt/docker/gatekeeper-${VERSION}/bin/gatekeeper -Dhttp.port=80 -Dversion=${VERSION} -Dlogger.resource=logback-prod.xml -Dlogging.coloured=false
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ services:
- ~/logs:/opt/docker/gatekeeper-$VERSION/logs
- $HOME/.aws:/root/.aws
environment:
VERSION: $VERSION
# VERSION: $VERSION
EMAIL_FROM: "test@email.com"
MONGO_URI: "mongodb://mongo.local"
APP_SECRET: "23817cc7d0e6460e9c1515aa4047b29b"
Expand Down

0 comments on commit 19b254a

Please sign in to comment.