Skip to content

Commit

Permalink
[MOSIP-31575] Updated docker file.
Browse files Browse the repository at this point in the history
Signed-off-by: abhishek8shankar <127825992+abhishek8shankar@users.noreply.github.com>
  • Loading branch information
abhishek8shankar committed Apr 12, 2024
1 parent 76d4471 commit 8a5f03e
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions automationtests/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,5 @@
FROM openjdk:11

ARG SOURCE
ARG COMMIT_HASH
ARG COMMIT_ID
ARG BUILD_TIME
LABEL source=${SOURCE}
LABEL commit_hash=${COMMIT_HASH}
LABEL commit_id=${COMMIT_ID}
LABEL build_time=${BUILD_TIME}

# can be passed during Docker build as build time environment for github branch to pickup configuration from.
ARG container_user=mosip
Expand All @@ -17,6 +9,18 @@ ARG container_user_gid=1001

ARG KUBECTL_VERSION=1.22.9

# can be passed during Docker build as build time environment for label related addition to docker.
ARG SOURCE
ARG COMMIT_HASH
ARG COMMIT_ID
ARG BUILD_TIME

# can be passed during Docker build as build time environment for label.
LABEL source=${SOURCE}
LABEL commit_hash=${COMMIT_HASH}
LABEL commit_id=${COMMIT_ID}
LABEL build_time=${BUILD_TIME}

# set working directory for the user
WORKDIR /home/${container_user}

Expand Down

0 comments on commit 8a5f03e

Please sign in to comment.