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 !!!
By default:
jenkins version: 2.107.3ansible version: >= 2.5.2maven version: 3.5.4gradle version: 2.4.2.0NEW az-cli: 2.0.45
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-fullTo 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:latestNote: Set selinux in permissive mode to avoid problems.
sudo setenforce 0
sudo sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/selinux/configSending 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:latestAfter it, you will run the following command
docker logs -f jenkins-fullyou should see the following logs
Copy the string and open your browser (I hope you have the IP of the docker host) http://yourip:8080
Paste it! and press continue!!! The next two steps make the selection you want.


