Skip to content

VictorGil-Ops/Jenkins_dockerized_LAB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenkins_dockerized_LAB

Jenkins build and publish images on Docker Hub.

Installation

Prerequisites:

  • Docker >= 19.03.13

To install Docker Engine follow steps given in Install Docker Engine.

Usage

  1. Clone the project locally
git clone https://github.com/VictorGil-Ops/Jenkins_dockerized_LAB.git
  1. Run a docker-compose
docker-compose -f ./Jenkins-Container/docker-compose.yaml up -d
  1. Runnning application
http://127.0.0.1:8080

Use the initial password, show in '/var/jenkins_home/secrets/initialAdminPassword' or show it in container logs:

docker exec jenkins-container cat /var/jenkins_home/secrets/initialAdminPassword

  1. Install Plugins

Install Suggested Plugins and later, from Plugin Manager:

- Docker Pipeline
- Git Plugin
- Docker Compose Build Step

CREATE a Jobs

  1. Create credentials for Docker Hub and Github repo

  1. Create Pipeline

  1. Configure pipeline

  1. Configure SCM #TODO