Jenkins 2 Docker Image
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ssh_keys
.gitignore
1-phinx.xml
Dockerfile
Makefile
README.md
config.xml
credentials.xml
plugins.txt
ssh-config

README.md

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.

  1. Clone the Repo
$ git clone https://github.com/robmorgan/jenkins2-docker
$ cd jenkins2-docker
  1. 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.

  1. Build the Docker image
$ make build
  1. Start Jenkins
$ make run
$ open http://localhost:8080