-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jenkins calls docker like with a user mapping to the runner's user id: docker run -t -d -u 1001:1001 -w ... If the user doesn't exist in the image, the fs permissions are messed up, which caused issues after trying to upgrade the GraalVM polyglot package in CrateDB. See crate/crate#15769 Adding a jenkins user to the images should fix this.
- Loading branch information
1 parent
7f79c38
commit ccd94f4
Showing
5 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
FROM rust:1.72 | ||
|
||
RUN \ | ||
groupadd jenkins && \ | ||
useradd -u 1001 -g jenkins -m jenkins && \ | ||
apt-get update && \ | ||
apt-get -y upgrade && \ | ||
apt-get -y --no-install-recommends install openjdk-17-jdk python3-venv python3-dev | ||
|
||
ENV HOME /root | ||
WORKDIR /root | ||
USER root | ||
USER jenkins | ||
|
||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
FROM golang:1.21 | ||
|
||
RUN \ | ||
groupadd jenkins && \ | ||
useradd -u 1001 -g jenkins -m jenkins && \ | ||
apt-get update && \ | ||
apt-get -y upgrade && \ | ||
apt-get -y install python3-venv python3-dev | ||
|
||
ENV HOME /root | ||
WORKDIR /root | ||
USER root | ||
USER jenkins | ||
|
||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
FROM node:15-buster | ||
|
||
RUN \ | ||
groupadd jenkins && \ | ||
useradd -u 1001 -g jenkins -m jenkins && \ | ||
apt-get update && \ | ||
apt-get -y install python3-pip libpq5 libpq-dev sudo | ||
|
||
ENV HOME /root | ||
WORKDIR /root | ||
USER ROOT | ||
USER jenkins | ||
|
||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:8.0 | ||
|
||
RUN \ | ||
groupadd jenkins && \ | ||
useradd -u 1001 -g jenkins -m jenkins && \ | ||
apt-get update && \ | ||
apt-get -y install python3-venv python3-dev build-essential | ||
|
||
ENV HOME /root | ||
WORKDIR /root | ||
USER root | ||
USER jenkins | ||
|
||
CMD ["bash"] |