Complete Jenkins CI/CD Project:

Complete Jenkins CI/CD Project:

Let's make a beautiful CI/CD Pipeline for your Node JS Application???

Task-01:

Fork?this?repository:

No alt text provided for this image

Create a connection to your Jenkins job and your GitHub Repository via GitHub Integration.

  • Generate the SSH keys for integrating your Jenkins project with your git repository. Use ssh-keygen command to create public and private key.

No alt text provided for this image

  • Now, go to your GitHub account settings.
  • Go to?SSH and GPG keys, Add public key that we created using ssh-keygen and select key-type Authentication key.

No alt text provided for this image

For GitHub-Webhook:

  • Go to your GitHub repository and click on?Settings.
  • Click on?Webhooks?and then click on?Add webhook.
  • In the?‘Payload URL’?field, paste your Jenkins environment URL. At the end of this URL add?/github-webhook/. In the?‘Content type’?select:?‘application/json’?and leave the?‘Secret’?field empty.

No alt text provided for this image

  • Now for Installing GitHub Integration plugin in Jenkins
  • Open your jenkins dashboard.
  • Click on the?Manage Jenkins?button on your Jenkins dashboard
  • Click on?Manage Plugins
  • Install GitHub Integration plugin

No alt text provided for this image

  • Configuring Jenkins:
  • Create a jenkins job

No alt text provided for this image

  • Create node-todo-app freestyle project

No alt text provided for this image

  • In Configure, GitHub project URL write your project GitHub URL

No alt text provided for this image

  • In Git, add credentials for Jenkins

No alt text provided for this image

  • Click on the?‘Build Triggers’?tab and then on the?‘GitHub hook trigger for GITScm polling’.

No alt text provided for this image

Task 2:

In the Execute shell run the application using Docker compose

No alt text provided for this image

  • You will have to make a Docker Compose file for this Project
  • After build you can check console output.

No alt text provided for this image

  • Using docker ps command, you can see container is created.

No alt text provided for this image

  • Browse public IP address with port no.8000

No alt text provided for this image


Thank you for reading! I hope you find this article helpful.

Happy Learning ??

Rushikesh Mashidkar

DevOps Engineer || Helping organizations with DevOps & Orchestration || Cloud || Terraform || Kubernetes || Azure || AWS || GCP || Docker || Ansible || Monitoring

2 年

This is amazing ?? I'm glad to know that you liked this challenge can you fill this feedback form whenever you get time https://forms.gle/zCBBrTHLAzMD5htt8

要查看或添加评论,请登录

Nihal Apretwar的更多文章

  • SQS (Simple Queue Service):

    SQS (Simple Queue Service):

    What is SQS: Amazon Simple Queue Service (SQS) is a managed message queuing service technical professionals and…

  • Amazon S3: (Simple Storage service):

    Amazon S3: (Simple Storage service):

    What is S3: It provides object storage which is build for storing and recovering any amount of data from anywhere over…

  • Elastic Compute Cloud (EC2)

    Elastic Compute Cloud (EC2)

    What is EC2 : Amazon EC2 Provides secure and resizable compute capacity in the AWS cloud. You can use Amazon EC2 to…

  • IAM (Identity and Access Management)

    IAM (Identity and Access Management)

    IAM : AWS identity access management is a web service that help you securely control access to AWS resources. You use…

  • AWS (Amazon Web Services)

    AWS (Amazon Web Services)

    What is AWS ? AWS stands for Amazon web services. AWS is a secure cloud service platform that provides on-demand…

    1 条评论
  • Jenkins Declarative Pipeline:

    Jenkins Declarative Pipeline:

    One of the most important parts of your DevOps and CICD journey is a Declarative Pipeline Syntax of Jenkins. Some…

  • Complete Jenkins CI/CD Project - Continued with Documentation

    Complete Jenkins CI/CD Project - Continued with Documentation

    I can imagine catching up will be tough so take a small breather today and complete the Jenkins CI/CD project from Day…

    6 条评论
  • Jenkins Freestyle Project for DevOps Engineers:

    Jenkins Freestyle Project for DevOps Engineers:

    What is CI/CD? CI or Continuous Integration is the practice of automating the integration of code changes from multiple…

  • Getting Started with Jenkins:

    Getting Started with Jenkins:

    What is Jenkins? Jenkins is an open source continuous integration-continuous delivery and deployment (CI/CD) automation…

    2 条评论
  • Docker Important interview Questions:

    Docker Important interview Questions:

    Questions: 1. What is the Difference between an Image, Container and Engine? An Image is a pre-configured file system…

社区洞察

其他会员也浏览了