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)