Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.12 KB

README.md

File metadata and controls

44 lines (27 loc) · 1.12 KB

CICD Hands On

Installation

Firstly you need :

  • JRE 17 or 21
  • Docker and Docker Compose Plugin
  • Jenkins (LTS or Weekly)
  • BunJS

Make sure you add Jenkins to Docker Group, and restart jenkins.service.

Install script for above tools ( only for debian based distributions can be found inside Jenkins folder)

curl -sSL https://raw.githubusercontent.com/AdityaAparadh/CICD/master/Jenkins/install.sh | sudo bash

Setup

  1. Visit http://localhost:8080

The initial password can be found by:

sudo cat /var/lib/jenkins/secrets/initialAdminPassword
  1. Then select Install Recommended Plugins. Wait for installation.

  2. After that, ignore user setup for now

  3. On Jenkins Dashboard, click on New Item

  4. Name the Item, and select type as Pipeline

  5. Set respective fields, and for groovy script, copy from this repo. Also set Git SCM polling to "* * * * *", which will poll every minute.

  6. Save pipeline.

  7. Build Manually.

  8. Visiting http://localhost:5173 should now open the application.

  9. docker ps should show three running containers, for Frontend, Backend and Database (MongoDB).