From b6ffa569ee40f7b519562f85046887b179c828cf Mon Sep 17 00:00:00 2001 From: Adrien Lecharpentier Date: Thu, 19 Sep 2024 17:15:39 +0200 Subject: [PATCH] feat!(Dockerfile) Changes UID and GID used to run the application (#536) BREAKING CHANGE: default user UID is now `4242` --- Jenkinsfile | 3 +++ core/pom.xml | 2 +- pom.xml | 2 +- test/pom.xml | 2 +- war/pom.xml | 2 +- war/src/main/docker/Dockerfile | 12 ++++++------ 6 files changed, 13 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 206b9f1b4..4d7c31858 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,6 +10,9 @@ pipeline { skipStagesAfterUnstable() timestamps() } + triggers { + cron('@daily') + } stages { stage('Build') { diff --git a/core/pom.xml b/core/pom.xml index da2bc815f..29bdd1653 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -28,7 +28,7 @@ io.jenkins.pluginhealth.scoring plugin-health-scoring-parent - 3.10.1-SNAPSHOT + 4.0.0-SNAPSHOT ../pom.xml diff --git a/pom.xml b/pom.xml index c47e1600e..450dc6cc2 100644 --- a/pom.xml +++ b/pom.xml @@ -27,7 +27,7 @@ io.jenkins.pluginhealth.scoring plugin-health-scoring-parent - 3.10.1-SNAPSHOT + 4.0.0-SNAPSHOT pom Plugin Health Scoring :: Parent diff --git a/test/pom.xml b/test/pom.xml index c8426a231..c50ae9ba8 100644 --- a/test/pom.xml +++ b/test/pom.xml @@ -28,7 +28,7 @@ io.jenkins.pluginhealth.scoring plugin-health-scoring-parent - 3.10.1-SNAPSHOT + 4.0.0-SNAPSHOT ../pom.xml diff --git a/war/pom.xml b/war/pom.xml index 1c2dd15b1..0399e5391 100644 --- a/war/pom.xml +++ b/war/pom.xml @@ -28,7 +28,7 @@ io.jenkins.pluginhealth.scoring plugin-health-scoring-parent - 3.10.1-SNAPSHOT + 4.0.0-SNAPSHOT ../pom.xml diff --git a/war/src/main/docker/Dockerfile b/war/src/main/docker/Dockerfile index cfe8b4208..fe2f96101 100644 --- a/war/src/main/docker/Dockerfile +++ b/war/src/main/docker/Dockerfile @@ -1,4 +1,4 @@ -FROM eclipse-temurin:21-jdk as builder +FROM eclipse-temurin:21-jdk AS builder WORKDIR /src @@ -7,12 +7,12 @@ RUN jar -xf plugin-health-scoring.jar FROM eclipse-temurin:21-jre -ENV HOME /app +ENV HOME=/app ARG user=phs -ARG uid=1000 +ARG uid=4242 ARG group=phs -ARG gid=1000 +ARG gid=4242 ARG server_port=8080 ARG spring_profile=production @@ -23,8 +23,8 @@ USER ${user}:${group} WORKDIR ${HOME} -ENV SPRING_PROFILES_ACTIVE ${spring_profile} -ENV SERVER_PORT ${server_port} +ENV SPRING_PROFILES_ACTIVE=${spring_profile} +ENV SERVER_PORT=${server_port} ENTRYPOINT ["/bin/bash", "/app/docker-entrypoint.sh"]