Skip to content

Commit

Permalink
Merge pull request #30 from syedsalman3753/master
Browse files Browse the repository at this point in the history
[DSD-5160] Added openjdk17-jre Dockerfile
  • Loading branch information
ckm007 authored May 2, 2024
2 parents c71320d + 7802302 commit c6679c1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
release:
types: [published]
pull_request:
types: [opened]
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
message:
Expand Down Expand Up @@ -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
Expand Down
29 changes: 29 additions & 0 deletions openjdk/17-jre/Dockerfile
Original file line number Diff line number Diff line change
@@ -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} \

0 comments on commit c6679c1

Please sign in to comment.