Skip to content

Commit

Permalink
feat!(Dockerfile) Changes UID and GID used to run the application (#536)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: default user UID is now `4242`
  • Loading branch information
alecharp authored Sep 19, 2024
1 parent 1c950c8 commit b6ffa56
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
3 changes: 3 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ pipeline {
skipStagesAfterUnstable()
timestamps()
}
triggers {
cron('@daily')
}

stages {
stage('Build') {
Expand Down
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>io.jenkins.pluginhealth.scoring</groupId>
<artifactId>plugin-health-scoring-parent</artifactId>
<version>3.10.1-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<groupId>io.jenkins.pluginhealth.scoring</groupId>
<artifactId>plugin-health-scoring-parent</artifactId>
<version>3.10.1-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
<packaging>pom</packaging>

<name>Plugin Health Scoring :: Parent</name>
Expand Down
2 changes: 1 addition & 1 deletion test/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>io.jenkins.pluginhealth.scoring</groupId>
<artifactId>plugin-health-scoring-parent</artifactId>
<version>3.10.1-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
2 changes: 1 addition & 1 deletion war/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<parent>
<groupId>io.jenkins.pluginhealth.scoring</groupId>
<artifactId>plugin-health-scoring-parent</artifactId>
<version>3.10.1-SNAPSHOT</version>
<version>4.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

Expand Down
12 changes: 6 additions & 6 deletions war/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM eclipse-temurin:21-jdk as builder
FROM eclipse-temurin:21-jdk AS builder

WORKDIR /src

Expand All @@ -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
Expand All @@ -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"]

Expand Down

0 comments on commit b6ffa56

Please sign in to comment.