Sign inSign up

lvjp/jenkins

By lvjp

•Updated almost 11 years ago

Simple jenkins image

Image
0

1.7K

lvjp/jenkins repository overview

#Jenkins

The Jenkins Continuous Integration and Delivery server server.

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

Jenkins logo

⁠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⁠.

Tag summary

Content type

Image

Digest

sha256:9cab6c147…

Size

343 MB

Last updated

almost 11 years ago

docker pull lvjp/jenkins