BuildEnvironments/Jenkins/Dockerfile

23 lines
518 B
Text
Raw Normal View History

2024-11-09 18:18:38 -07:00
FROM git.zontreck.com/ariascreations/buildenvironments:debianbuild
2024-11-09 13:37:17 -07:00
RUN apt-get update
RUN apt-get upgrade -y
RUN apt-get install -y openjdk-17-jdk openjdk-17-jre curl wget moreutils
2024-11-12 21:13:06 -07:00
ENV JENKINS_VERSION 2.485
2024-11-09 13:37:17 -07:00
USER root
WORKDIR /
RUN wget "https://get.jenkins.io/war/$JENKINS_VERSION/jenkins.war"
2024-11-13 00:30:16 -07:00
# Add a user ID 1000:1000
RUN useradd -m -s /bin/bash fakeuser
# Jenkins expects ID 1001:1001
2024-11-09 13:37:17 -07:00
RUN useradd -m -s /bin/bash -d /jenkins jenkins
2024-11-13 00:30:16 -07:00
USER jenkins
2024-11-09 13:37:17 -07:00
WORKDIR /jenkins
2024-11-12 21:13:06 -07:00
ENTRYPOINT ["java", "-jar", "/jenkins.war"]