fixed and updated

jenkins-dev
Daniel Mikula 2023-05-22 16:17:13 +02:00
parent bd79380d1c
commit 1121da1087
2 changed files with 9 additions and 5 deletions

View File

@ -1,8 +1,12 @@
FROM jenkins/jenkins:lts-jdk11
FROM jenkins/jenkins:2.332.3-jdk11
USER root
RUN apt-get update && apt-get install -y lsb-release
RUN curl -fsSlo /usr/share/keyrings/docker-archive-keyring.asc https://download.docker.com/linux/debian/gpg
RUN echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.asc] https://download.docker.com/linux/debian $(lsb_release -cs) stable" > /etc/apt/resources.list.d/docker.list
RUN curl -fsSLo /usr/share/keyrings/docker-archive-keyring.asc \
https://download.docker.com/linux/debian/gpg
RUN echo "deb [arch=$(dpkg --print-architecture) \
signed-by=/usr/share/keyrings/docker-archive-keyring.asc] \
https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list
RUN apt-get update && apt-get install -y docker-ce-cli
USER jenkins
RUN jenkins-plugin-cli --plugins "blueocean:1.25.3 docker-workflow:1.28"
RUN jenkins-plugin-cli --plugins "blueocean:1.25.3 docker-workflow:1.28"

View File

@ -20,7 +20,7 @@ docker run --name jenkins-blueocean --restart=on-failure --detach \
--publish 8080:8080 --publish 50000:50000 \
--volume jenkins-data:/var/jenkins_home \
--volume jenkins-docker-certs:/certs/client:ro \
myjenkins-blueocean:2.332.3-1
jenkins-blueocean:2.332.3-1
```
Get Jenkins Password