Jenkins 2 Docker Example
This is the repository for a Jenkins 2 tutorial originally posted on my blog:
Note: The global Jenkins security has been disabled.
- Clone the Repo
$ git clone https://github.com/robmorgan/jenkins2-docker $ cd jenkins2-docker
- Generate GitHub deployment keys (https://developer.github.com/guides/managing-deploy-keys/).
$ make keygen
Note: Deploy keys are usually not protected by a passphrase, making the key easily accessible if the server is compromised.
- Build the Docker image
$ make build
- Start Jenkins
$ make run $ open http://localhost:8080