Skip to content

Latest commit

 

History

History
41 lines (29 loc) · 1.43 KB

README.md

File metadata and controls

41 lines (29 loc) · 1.43 KB

Simple docker-compose and bash script for install prerequisites and run Jenkins in docker

Prerequisites

  • Docker engine
  • Docker-compose

How to use ?

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.

alt text alt text

Configuration

  • Get Temporary Admin Password
container_id=$(docker ps -aqf "name=jenkins")
docker exec $container_id cat /var/jenkins_home/secrets/initialAdminPassword
  • Paste this password inside page and click Continue alt text

  • Next install suggested plugins alt text

  • Wait For installation completed and then website will be redirect to creation local admin account. alt text

  • Setup local admin account and click Save and Continue and then Save and Finish alt text

After that our Jenkins setup is complete and we can start using Jenkins.