Skip to content

HawaiianSpecialist/jenkins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jenkins-ist

Github repo for automated builds of a custom version of Jenkins on docker hub.

Installation

  1. Ensure /data/jenkins/ directory is created and has the correct permissions.
  • If you are using vagrant, the directory should be owned by vagrant. If you are logged in to an Ubuntu EC2 instance, then the ubuntu user should own the directory.
  • If it needs to be created:
    1. Run sudo mkdir /data
    2. Run sudo mkdir /data/jenkins
    3. Run sudo chown 1000 /data/jenkins
  1. Build the Jenkins docker image that you want to run in a container. Ensure you are in the /jenkins directory with the Dockerfile and run docker build -t ist/jenkins:[Version] .
  2. To run the container: docker run -d --name jenkins[Version] --net=host -p 8080:8080 -p 5000:5000 -v /data/jenkins:/var/jenkins_home -u 1000 -t ist/jenkins:[Version]
  • -d to run in the background
  • --net=host so the container shares the host network stack and has access to the /etc/hosts for network communication
  • -p 8080:8080 so the 8080 port in the container receives all requests to port 8080 on the host. Jenkins runs on Tomcat, which uses port 8080 as the default
  • -p 5000:5000 required to attach slave servers; port 50000 is used to communicate between master and slaves
  • -v /data/jenkins:/var/jenkins_home to bind host directory /data/jenkins to the container directory /var/jennkins_home
  • -u 1000 jenkins user uid is 1000, same as ubuntu and vagrant uid's are 1000

About

jenkins-ist

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Groovy 100.0%