Repository files navigation
Clone this repo
./scripts/install.sh
To persist your jenkins changes make sure you have a persistent volume linked on /var/jenkins_home
make start
Make changes or pull them from the repository
make rebuild -> it will stop running container, rebuild the image, clean docker garbage and start jenkins again
Restoring backups on your local machine
mkdir -p .docker-dev/backup
scp -r -i <YOUR_KEY> USER@HOST:/mnt/backup .docker-dev
Go to http://localhost:8080/thinBackup/backupsettings and ensure the backup dir is set to /mnt/backup
Go to http://localhost:8080/thinBackup/restoreOptions and restore the backup you just downloaded
sed -i 's|jenkins\.example\.com|localhost|g' .docker-dev/jenkins_home/jenkins.model.JenkinsLocationConfiguration.xml
sed -i 's|<useSecurity>true</useSecurity>|<useSecurity>false</useSecurity>|g' .docker-dev/jenkins_home/config.xml
Go to http://localhost:8080/manage and Reload Configuration from Disk
About
Jenkins and Docker holding hands
Resources
Stars
Watchers
Forks
You can’t perform that action at this time.