DEV Community

Cover image for Edureka's DevOps Certification ProjectπŸ…πŸ…
Swapnil Suresh Mohite
Swapnil Suresh Mohite

Posted on

Edureka's DevOps Certification ProjectπŸ…πŸ…

Linkedin
Github
πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…

Image description

πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…πŸ…
Image description

Problem Statement

AppleBite Co. is using Cloud for one of their products. The project uses modular components,
multiple frameworks and want the components to be developed by different teams or by 3rd-party
vendors.
The company’s goal is to deliver the product updates frequently to production with High quality &
Reliability. They also want to accelerate software delivery speed, quality and reduce feedback time
between developers and testers.
As development progressed, they are facing multiple problems, because of various technologies
involved in the project. Following are the problems:

  1. - Building Complex builds is difficult
  2. - Incremental builds are difficult to manage, and deploy

Image description

To solve these problems, they need to implement Continuous Integration & Continuous Deployment
with DevOps using following tools:



Git – For version control for tracking changes in the code files
Jenkins – For continuous integration and continuous deployment
Docker – For deploying containerized applications


Enter fullscreen mode Exit fullscreen mode

Ansible - Configuration management tools
This project will be about how to do deploy code to dev/stage/prod etc, just on a click of button.

Business challenge/requirement

As soon as the developer pushes the updated code on the GIT master branch, a new test server
should be provisioned with all the required software. Post this, the code should be containerized and
deployed on the test server.
The deployment should then be built and pushed to the prod server.
All this should happen automatically and should be triggered from a push to the GitHub master
branch.

Steps for executing the solution:

β€’ Use the Master VM for Jenkins, Ansible, GIT etc.
β€’ Use the fresh instance for Jenkins Slave Node (Test Server)
β€’ Change the IP address of the VMs accordingly
β€’ Add Build Pipeline Plugin and Post-build task plugin to Jenkins on the master VM
β€’ Install python, openssh-server and git on the slave node manually
β€’ Use the image devopsedu/webapp and add your PHP website to it using a Dockerfile
β€’ Push the PHP website, and the Dockerfile to a git repository

Below tasks should be automated through Jenkins by creating a pipeline:

  1. Install and configure puppet agent on the slave node (Job 1)

Image description

  1. Push an Ansible configuration on test server to install docker (Job 2)

Image description

  1. Pull the PHP website, and the Dockerfile from the git repo and build and deploy your PHP docker container. After. (Job 3)

Image description

Image description

Image description

  1. If Job 3 fails, delete the running container on Test Server

Image description

Image description
πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€πŸš€



#aws #Edureka #Jenkins #GitHub #Ansible #Docker #python



Enter fullscreen mode Exit fullscreen mode

Linkedin
Github

Top comments (0)