Add a custom jenkins image
This commit is contained in:
parent
3ad6559ef6
commit
45ab6ec25a
5 changed files with 47 additions and 3 deletions
18
Jenkins/Dockerfile
Normal file
18
Jenkins/Dockerfile
Normal file
|
@ -0,0 +1,18 @@
|
|||
FROM git.zontreck.com/ariascreations/debianbuild
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get upgrade -y
|
||||
RUN apt-get install -y openjdk-17-jdk openjdk-17-jre curl wget moreutils
|
||||
|
||||
ENV JENKINS_VERSION 2.484
|
||||
|
||||
USER root
|
||||
WORKDIR /
|
||||
RUN wget "https://get.jenkins.io/war/$JENKINS_VERSION/jenkins.war"
|
||||
|
||||
RUN useradd -m -s /bin/bash -d /jenkins jenkins
|
||||
USER jenkins
|
||||
|
||||
WORKDIR /jenkins
|
||||
|
||||
ENTRYPOINT ["java", "-jar", "/jenkins.war"]
|
Loading…
Add table
Add a link
Reference in a new issue