Skip to content

Instantly share code, notes, and snippets.

View rparias's full-sized avatar

Ronald Arias rparias

View GitHub Profile
@rparias
rparias / jenkins-in-docker.md
Created November 19, 2020 03:05 — forked from afloesch/jenkins-in-docker.md
Jenkins in Docker (docker-in-docker)

Jenkins in Docker (docker-in-docker)

Testing Jenkins flows on your local machine, or running Jenkins in production in a docker container can be a little tricky with a docker-in-docker scenario. You could install Jenkins to avoid any docker-in-docker issues, but then you have Jenkins on your machine, and the local environment is likely going to be a fairly different from the actual production build servers, which can lead to annoying and time-consuming issues to debug.

Build environment differences are precisely why there is a strong argument to be made to run build processes strictly in docker containers. If we follow the philosophy that every build step or action should run in a docker container, even the Jenkins server itself, then we get massive benefits from things like, total control over the build environment, easily modify the build environment without the possibility of adversely effecting other jobs, explicit and strongly controlled tool versions,

Keybase proof

I hereby claim:

  • I am rparias on github.
  • I am rparias (https://keybase.io/rparias) on keybase.
  • I have a public key ASCAYIafnnSC7wLP-w6D1taf1xz_gpJeB2htBi93tjH7Ago

To claim this, I am signing this object: