Skip to content

Commit

Permalink
[MOSIP-28241] Added build details in Dockerfile and docker build in p…
Browse files Browse the repository at this point in the history
…ush_tr… (#284)

* [28241] Added build details in Dockerfile and docker build in push_trigger.yml file

* [28241] Added build details in Dockerfile and docker build in push_trigger.yml file
  • Loading branch information
Prafulrakhade authored Jul 31, 2023
1 parent eb59558 commit 7a68de9
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/push_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
run: |
cd mock-abis
ls -ltr ./target
docker build . --file Dockerfile --tag mock-abis
# docker build . --file Dockerfile --tag mock-abis
docker build . --build-arg SOURCE=mosip --build-arg COMMIT_HASH=$(git rev-parse HEAD) --build-arg COMMIT_ID=$(git rev-parse --short HEAD) --build-arg BUILD_TIME=${{steps.date.outputs.date}} --file Dockerfile --tag ${{ env.SERVICE_NAME }}
- name: Log into registry
run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
Expand Down Expand Up @@ -89,7 +90,8 @@ jobs:
run: |
cd mock-mv
ls -ltr ./target
docker build . --file Dockerfile --tag mock-mv
# docker build . --file Dockerfile --tag mock-mv
docker build . --build-arg SOURCE=mosip --build-arg COMMIT_HASH=$(git rev-parse HEAD) --build-arg COMMIT_ID=$(git rev-parse --short HEAD) --build-arg BUILD_TIME=${{steps.date.outputs.date}} --file Dockerfile --tag ${{ env.SERVICE_NAME }}
- name: Log into registry
run: echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin
Expand Down
10 changes: 10 additions & 0 deletions mock-abis/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
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}

# environment variable to pass github branch to pickup configuration from, at docker runtime
ENV spring_config_label_env=${spring_config_label}
# environment variable to pass active profile such as DEV, QA etc at docker runtime
Expand Down
9 changes: 9 additions & 0 deletions mock-mv/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
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}
# environment variable to pass github branch to pickup configuration from, at docker runtime
ENV spring_config_label_env=${spring_config_label}
# environment variable to pass active profile such as DEV, QA etc at docker runtime
Expand Down
9 changes: 9 additions & 0 deletions softhsm/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
FROM ubuntu:18.04 as buildimage

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}
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install gcc make automake libtool autoconf pkg-config libssl-dev git-core \
Expand Down
9 changes: 9 additions & 0 deletions softhsm/artifactory/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
FROM nginx

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}
ADD client.zip /usr/share/nginx/html/artifactory/libs-release-local/hsm/client.zip
9 changes: 9 additions & 0 deletions softhsm/test-client/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
FROM openjdk:8

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}
RUN apt-get update \
&& apt-get -y upgrade \
&& apt-get -y install unzip
Expand Down

0 comments on commit 7a68de9

Please sign in to comment.