Skip to content

Commit

Permalink
Merge pull request #1013 from aihamh/develop
Browse files Browse the repository at this point in the history
MOSIP-34325 Pre-reg Booking Service: Moved develop-java21 code to develop branch
  • Loading branch information
ckm007 committed Jul 16, 2024
2 parents a2f450e + a7c18bc commit 45cc3c8
Show file tree
Hide file tree
Showing 16 changed files with 214 additions and 176 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
build-maven-pre-registration-booking-service:
uses: mosip/kattu/.github/workflows/maven-build.yml@master
uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21
with:
SERVICE_LOCATION: pre-registration-booking-service
BUILD_ARTIFACT: pre-registration-booking-service
Expand All @@ -82,7 +82,7 @@ jobs:
BUILD_ARTIFACT: 'pre-registration-booking-service'
fail-fast: false
name: ${{ matrix.SERVICE_NAME }}
uses: mosip/kattu/.github/workflows/docker-build.yml@master
uses: mosip/kattu/.github/workflows/docker-build.yml@master-java21
with:
SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }}
SERVICE_NAME: ${{ matrix.SERVICE_NAME }}
Expand All @@ -96,7 +96,7 @@ jobs:
publish_to_nexus_pre-registration-booking-service:
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' }}"
needs: build-maven-pre-registration-booking-service
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master-java21
with:
SERVICE_LOCATION: pre-registration-booking-service
secrets:
Expand All @@ -109,7 +109,7 @@ jobs:
sonar_analysis:
needs: build-maven-pre-registration-booking-service
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: pre-registration-booking-service
PROJECT_KEY: mosip_pre-registration-booking-service
Expand Down
12 changes: 6 additions & 6 deletions pre-registration-booking-service/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openjdk:11
FROM eclipse-temurin:21-jre-alpine

ARG SOURCE
ARG COMMIT_HASH
Expand Down Expand Up @@ -49,16 +49,16 @@ ARG container_user=mosip
ARG container_user_group=mosip

# can be passed during Docker build as build time environment for github branch to pickup configuration from.
ARG container_user_uid=1001
ARG container_user_uid=1002

# can be passed during Docker build as build time environment for github branch to pickup configuration from.
ARG container_user_gid=1001

# install packages and create user
RUN apt-get -y update \
&& apt-get install -y unzip \
&& groupadd -g ${container_user_gid} ${container_user_group} \
&& useradd -u ${container_user_uid} -g ${container_user_group} -s /bin/sh -m ${container_user}
RUN apk -q update \
&& apk add -q unzip wget \
&& addgroup -g ${container_user_gid} ${container_user_group} \
&& adduser -s /bin/sh -u ${container_user_uid} -G ${container_user_group} -h /home/${container_user} --disabled-password ${container_user}

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

0 comments on commit 45cc3c8

Please sign in to comment.