Skip to content

Use Jenkins inside docker for local development and testing

Notifications You must be signed in to change notification settings

videnovnebojsa/jenkins-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Getting started

docker-compose build

Several ways to proceed from here. You can use

docker-compose up -d

Get initial password

docker exec -it jenkins_test cat /var/jenkins_home/secrets/initialAdminPassword

Start slave container

Open master

docker-compose run -d slave -url http://192.168.99.100:8080 06647f7ff6fa31688663191eb7e62347c4b76b5a4f9a59c11a2edb3ad2e35899 slave1

where 06647f7ff6fa31688663191eb7e62347c4b76b5a4f9a59c11a2edb3ad2e35899 is secret and slave name slave1 you get from master jenkins when you create slave node.

Backup data from volume

To backup the data from the volume container is simple to. Simply run:

docker cp jenkins-dv:/var/jenkins_home /tmp/jenkins-backup

Performance

Java 1.8

docker run -p 8080:8080 --name=jenkins-master -d --env JAVA_OPTS="-Xmx8192m" jenkins

Java 1.7

docker run -p 8080:8080 --name=jenkins-master -d --env JAVA_OPTS=”-Xmx8192m -XX:PermSize=256m -XX:MaxPermSize=1024m” jenkins

Link

Official Jenkins master image Official Jenkins image repo Jenkins setup example 1 Putting Jenkins in a Docker Container Cloudbees Jenkins slave image

Slave on demand

Stackoverflow Docker Swarm and slaves in containers

About

Use Jenkins inside docker for local development and testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published