Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker file needs to be updated #35

Open
TapiwaChikwenya opened this issue Jul 23, 2023 · 5 comments
Open

Docker file needs to be updated #35

TapiwaChikwenya opened this issue Jul 23, 2023 · 5 comments

Comments

@TapiwaChikwenya
Copy link

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
Copy link
Owner

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
Copy link

blanpa commented Aug 6, 2023

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
Copy link

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

@otalfredo8
Copy link

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

@devopsjourney1
Copy link
Owner

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 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants