Certification Project - Devops: Edureka! Authored By: Viraj Sawant
Certification Project - Devops: Edureka! Authored By: Viraj Sawant
Project - DevOps
MAY, 2020
edureka!
Authored by: Viraj Sawant
1
Steps for executing the solution:
CICD Setup:
- Created a Master on GCP VM with Ubuntu(18.04) and installed Jenkins, Ansible, Puppet, (GIT –
Since it is Ubuntu Machine by Default it is present)
Jenkins:
Ansible:
Puppet:
Git:
2
• Use anther GCP VM with Ubuntu (18.04) for Jenkins Slave Node (Test Server)
• Add Build Pipeline Plugin and Post-build task plugin to Jenkins on the master VM
Python:
Openssh-server:
Git:
3
• Set up the necessary tools such as git, chromedriver(selenium), chromium
browser(selenium) on the slave node through Ansible
Execution:
4
Created ‘docker.pp’ file for docker installation
Confuigured Puppet on controller machine to install docker puppet agent on test server
5
Installed the puppet module ‘dev-ops-0.1.0.tar.gz’
Use the image devopsedu/webapp and add your PHP website to it using a Dockerfile
• Push the PHP website, Dockerfile and Selenium JAR to a git repository
6
Below tasks should be automated through Jenkins by creating a pipeline:
7
2. Sign the puppet certificate on master using Jenkins (Job 2)
8
1. Pull the PHP website, Dockerfile and Selenium JAR from your git repo and build and deploy
your PHP docker container. After this test the deployment using Selenium JAR file. (Job 4)
9
2. If Job 4 fails, delete the running container on Test Server
10
Jenkins Delivery Pipeline:
11