devopsjourney1 / jenkins-101

517 stars 1.6k forks source link

Docker file needs to be updated #35

Open TapiwaChikwenya opened 1 year ago

TapiwaChikwenya commented 1 year ago

docker file needs to be upadated to point to latest version of jenkins.

FROM jenkins/jenkins:lts-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/sources.list.d/docker.list

RUN apt-get update && apt-get install -y docker-ce-cli

USER jenkins

Update the Blue Ocean plugin version to the latest available

RUN jenkins-plugin-cli --plugins "blueocean:latest docker-workflow:1.28"

devopsjourney1 commented 1 year ago

Try my image that I created:

docker pull devopsjourney1/jenkins-blueocean:2.332.3-1 && docker tag devopsjourney1/jenkins-blueocean:2.332.3-1 myjenkins-blueocean:2.332.3-1
blanpa commented 1 year ago

Try my image that I created:

docker pull devopsjourney1/jenkins-blueocean:2.332.3-1 && docker tag devopsjourney1/jenkins-blueocean:2.332.3-1 myjenkins-blueocean:2.332.3-1

@devopsjourney1 Your image on Docker Hub does not install all plugins, at least with me. With the change of @TapiwaChikwenya everything runs without problems.

mohammedavez125 commented 1 year ago

just change FROM jenkins/jenkins:2.332.3-jdk11 to FROM jenkins/jenkins:latest in Dockerfile😊

otalfredo8 commented 1 year ago

Our simply update to the latest version (up today: 2.414.2)

devopsjourney1 commented 1 year ago

Thank you all for the input. I have updated the Dockerfile to 2.414.2

Usually my videos pin a version instead of using latest so people get the same version I used when I created the video - but in this case if plugins aren't installing it's worth it to update the image 👍