Created
January 8, 2021 16:03
-
-
Save gmolveau/5cd751a59d72f6fce5e6006f0e05a550 to your computer and use it in GitHub Desktop.
Dockerized jenkins build docker images
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker build -t jenkinsdocker . | |
| docker run -d --name jenkins -v jenkins_home:/var/jenkins_home -p 8080:8080 -p 50000:50000 -v /var/run/docker.sock:/var/run/docker.sock jenkinsdocker |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM jenkins/jenkins:lts | |
| # yes it runs as root, sadly the only way I found to make it work | |
| USER root | |
| RUN apt-get -qq update && apt-get -qq -y install curl && apt-get clean | |
| RUN curl -sSL https://get.docker.com/ | sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment