Jenkins

Used as an open-source scheduler ..

Jenkins is an open-source automation server that enables developers to build, test, and deploy software efficiently. It's mainly used for Continuous Integration (CI) and Continuous Delivery (CD), automating the parts of software development related to building, testing, and deploying, facilitating continuous improvement and collaboration.

CI/CD

Docker is a platform designed to help developers build, share, and run container applications.

Docker Compose is a tool for defining and running multi-container applications.

  1. Run update & upgrade (optional).

sudo apt update -y && sudo apt upgrade -y
  1. Create a Jenkins folder.

cd
mkdir ~/Jenkins
  1. Create docker-compose.yml

cd
cd ~/Jenkins
nano docker-compose.yml
services:
  jenkins:
    image: jenkins/jenkins:lts
    restart: always
    privileged: true
    user: root
    ports:
      - 9080:8080
      - 50000:50000
    container_name: jenkins-1
    volumes:
      - /home/pentaho/Jenkins/jenkins_configuration:/var/jenkins_home
      - /var/run/docker.sock:/var/run/docker.sock
  1. Save.

  1. Create jenkins container.

  1. Verify the logs

  1. Make a note of the password: 3d56d7ddc87c459ebaafe1117f7f56e7

  2. You can also retrieve the password with:


Configure Jenkins

  1. Access Jenkins UI.

Link to Jenkins UI
  1. Copy and paste the password.

Setup Admin account
  1. Click 'Continue' & keep the default option 'Install suggested plugins'.

Install suggested plugins
Default plugins
  1. Create Admin User.

Username

admin

Password

Welcome123!

Full name

system admin

admin user
  1. Save & Finish. You are now able to access Jenkins with the default admin account.

Jenkins URL confirmtion

Last updated

Was this helpful?