diff --git a/.github/workflows/push-trigger.yml b/.github/workflows/push-trigger.yml index 744cc97..cdf3d6c 100644 --- a/.github/workflows/push-trigger.yml +++ b/.github/workflows/push-trigger.yml @@ -4,7 +4,7 @@ on: release: types: [published] pull_request: - types: [opened] + types: [opened, reopened, synchronize] workflow_dispatch: inputs: message: @@ -32,6 +32,8 @@ jobs: SERVICE_NAME: 'minio-client-util' - SERVICE_LOCATION: 'openssl' SERVICE_NAME: 'openssl' + - SERVICE_LOCATION: 'openjdk/17-jre' + SERVICE_NAME: 'openjdk-17-jre' fail-fast: false name: ${{ matrix.SERVICE_NAME }} uses: mosip/kattu/.github/workflows/docker-build.yml@master diff --git a/openjdk/17-jre/Dockerfile b/openjdk/17-jre/Dockerfile new file mode 100644 index 0000000..5368580 --- /dev/null +++ b/openjdk/17-jre/Dockerfile @@ -0,0 +1,29 @@ +FROM ubuntu:20.04 + +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} + +ARG container_user=mosip +ARG container_user_group=mosip +ARG container_user_uid=1001 +ARG container_user_gid=1001 + +ENV container_user=${container_user} +ENV container_user_group=${container_user_group} +ENV container_user_uid=${container_user_uid} +ENV container_user_gid=${container_user_gid} + +# Install mc and its dependencies +RUN apt-get update && \ + apt-get install -y --no-install-recommends openjdk-17-jre wget && \ + java --version && \ + groupadd -g ${container_user_gid} ${container_user_group} && \ + useradd -u ${container_user_uid} -g ${container_user_group} -s /bin/bash -m ${container_user} && \ + mkdir -p /home/${container_user} \ +