- Docker engine
- Docker-compose
git clone https://github.com/spy86/CI_CD
cd jenkins-docker-compose
chmod +x install.sh
./install.sh
Wait for the script to finish and run the address http://<'IP-ADDRESS'>:8080 in the browser You should see Jenkins welcome page.
- Get Temporary Admin Password
container_id=$(docker ps -aqf "name=jenkins")
docker exec $container_id cat /var/jenkins_home/secrets/initialAdminPassword
-
Wait For installation completed and then website will be redirect to creation local admin account.
-
Setup local admin account and click Save and Continue and then Save and Finish
After that our Jenkins setup is complete and we can start using Jenkins.