Jenkins build and publish images on Docker Hub.
Prerequisites:
- Docker >= 19.03.13
To install Docker Engine follow steps given in Install Docker Engine.
- Docker Compose Install Docker Compose.
- Clone the project locally
git clone https://github.com/VictorGil-Ops/Jenkins_dockerized_LAB.git
- Run a docker-compose
docker-compose -f ./Jenkins-Container/docker-compose.yaml up -d
- 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
- Install Plugins
Install Suggested Plugins and later, from Plugin Manager:
- Docker Pipeline
- Git Plugin
- Docker Compose Build Step
- Create credentials for Docker Hub and Github repo
- Create Pipeline
- Configure pipeline
- Configure SCM #TODO