Public Repository

Last pushed: 2 years ago
Short Description
Dockerised Jenkins jobs for PHP projects
Full Description

Instructions

Build with:

$ sudo docker build -t sebp/jenkins .

Run with:

$ sudo docker run -p 8080:8080 --name=jenkins --privileged -dit sebp/jenkins .

where:

  • --privileged is used to make a tmpfs mount
  • -d detaches container
  • -i keeps STDIN open even if not attached
  • -t allocates a pseudo-TTY

Attach with:

$ sudo docker attach jenkins

Detach by typing Ctrl-P then Ctrl-Q.

Stop with:

$ sudo docker stop jenkins

Production notes

Adapted from https://github.com/jamtur01/dockerbook-code.

Completed based on http://jenkins-php.org/installation.html.

Docker Pull Command
Owner
sebp

Comments (0)