Public | Automated Build

Last pushed: 2 years ago
Short Description
Simple jenkins image
Full Description

#Jenkins

The Jenkins Continuous Integration and Delivery server server.

This is a fully functional Jenkins server with updated modules of weekly version.

Run the image

Simply run this image wth:

docker run --name myjenkins -d -p 8080:8080 lvjp/jenkins

and open your browser to http://localhost:8080

Create new backup

The backup file backup.tar.gz will create under the current directory.
There is no need to stop server before took backup.

docker run --rm --volumes-from myjenkins -v $(pwd):/backup debian tar -cvzf /backup/backup.tar.gz -C /var/lib jenkins

Restore from backup

The server should be stopped before restore from backup.

docker run --rm --volumes-from myjenkins -v $(pwd):/backup debian tar -xvzf /backup/backup.tar.gz -C /var/lib

Upgrade Jenkins image

Create temporary container

Create myjenkins-data container for preserve data even after myjenkins is erased.

docker run --name myjenkins-data --volumes-from myjenkins busybox

Stop jenkins

Stop jobs scheduling by going to Manage Jenkins > Configure System > Prepare for Shutdown

When all jobs finish to run, you can stop the container with:

docker stop myjenkins

Erase old Jenkins image

Erasing myjenkins image will not erase data which are holded by myjenkins-data

docker rm myjenkins

Pull last Jenkins image

docker pull lvjp/jenkins

Start new image

docker run --name myjenkins --volumes-from myjenkins-data -d -p 8080:8080 lvjp/jenkins

Erase temporary container

docker rm myjenkins-data

#User Feedback

If you have any problems with or questions about this image, please contact me through a GitHub issue.

Docker Pull Command
Owner
lvjp
Source Repository