Docker & Jenkins Project for DevOps Engineer

Have you ever been in a situation where you can run your app in your local, but it doesn't work in your friend's computer? Well, I have. There is a solution to this problem. Use Docker. Docker helps you avoid this dependency problem. Why so? By using Docker, it means that Docker will make containers of your application and the containers are consistent, so whether you run on a local laptop, your friend's computer, or on a cloud platform, it will run successfully. Its portability is one of the reasons why people like it.
Project
1. Pull the project from the Github repository
2. Create Dockerfile to create an image.
3. Push that image onto the DockerHub Repository.
4. Before pushing you have to reserve space in the DockerHub repository.
5. Once Dockerfile is created, make a container from that image.
6. While creating a container use the DockerHub image.
7. While creating a container only you can map the port.
8. Open that port in the security group of the EC2 Instance.
9. Now you can access the node-todo app from the web.
Jenkins Project for DevOps Engineer
Now I want to run my project through Jenkins
Step1: First install Java
Step2: Install Jenkins
Install plugins while setup jenkins

Copy the URL which is available in your GitHub repository

Branches to build

Why we are selecting master in the Branches to Build section?
Because our code is on the master branch. see the below image.

Build Step

After so many unsuccessful builds finally, my build is successfully done.



Result:- Now you can access your application through the web.

