Let’s attempt to create a CI/CD pipeline utilizing Jenkins
GitHub
Create new GitHub repo
Clone repo
Node
Create a functioning Node application
Commit and push application to repo
Jenkins
Create a new Jenkins Project
- configure the project to pull code from the Github repo
- Add a single build step - ‘npm install’
Docker
For review - Why we don’t let non-root users run Docker in CentOS, Fedora, or RHEL
There are many Docker plugins available for Jenkins. We will work with the ‘CloudBees Docker Build and Publish’ plugin.
Replace the existing build step ‘npm install’ with a step for ‘Docker Build and Publish’