Skip to content

A git repository for a docker image imagen with a set of tool to do CI / CD

Notifications You must be signed in to change notification settings

iesussan/docker_ci_tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker ci/cd play tools

A custom docker imagen for a development enviroment of Jenkins. I used some original files from docker Jenkins repository to create it. Yes! Yes! I KNOW IT! this is another jenkins image in docker ... but this one includes little toys that will make your life easier to get into "DevOps' World".

!!! mysterious background music !!!

alt text

What does this image contain?

By default:

  • jenkins version: 2.107.3
  • ansible version: >= 2.5.2
  • maven version: 3.5.4
  • gradle version: 2.4.2.0
  • NEW az-cli: 2.0.45

Usage

Clone the repository and follow this lines

git clone https://github.com/is-daimonos/docker_ci_tools
cd docker_ci_tools
sudo mkdir -p /var/lib/docker/Volumes/jenkins-full
sudo chown 2000:2000 /var/lib/docker/Volumes/jenkins-full

To build it (Basic build):

docker build -t isdaimonos/jenkins-full:latest -f Dockerfile.dockerfile .

To run it:

docker run --restart on-failure --name jenkins-full --dns 8.8.8.8 -d -p 8080:8080 -p 50000:50000 -v /var/lib/docker/Volumes/jenkins-full:/var/jenkins_home isdaimonos/jenkins-full:latest

Note: Set selinux in permissive mode to avoid problems.

sudo setenforce 0
sudo sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/config

Extended usage

Sending extra vars like JVM params

docker run --restart on-failure --name jenkins-full --dns 8.8.8.8 -d -p 8080:8080 -p 50000:50000 -v /var/lib/docker/Volumes/jenkins-full:/var/jenkins_home --env JAVA_OPTS="-Dhudson.footerURL=http://myhost -Djava.awt.headless=true" isdaimonos/jenkins-full:latest

After it, you will run the following command

docker logs -f jenkins-full

you should see the following logs

alt text

Copy the string and open your browser (I hope you have the IP of the docker host) http://yourip:8080

alt text

Paste it! and press continue!!! The next two steps make the selection you want.

About

A git repository for a docker image imagen with a set of tool to do CI / CD

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published