0% found this document useful (0 votes)
31 views7 pages

Devops Nodejs App1

Devops1 lab material

Uploaded by

vignangudla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
31 views7 pages

Devops Nodejs App1

Devops1 lab material

Uploaded by

vignangudla
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

DevOps node js project

-> first install all the dependencies


-jdk,git,docker,Jenkins

->make sure all the dependencies are installed and working properly.

->login your github account in the browser.

->click on new tab, in the new tab paste https://github.com/Wilsonbolledula/my-node-app.git

->after pasting the link fork the repository

->copy the repository HTTPS url from the code

Jenkins Project:
->open the Jenkins in new tab and type “localhost:8080” or “localhost:8085”which you have kept the
port number while installing the Jenkins.
->after opening Jenkins, click on new item which is appearing in the leftside

->after selecting new item you are able to see like this

->now in the box enter any name for your Jenkins project and select pipeline project, click ok.

->after clicking ok you will get like this


->Select Pipeline in the configure

->click on Pipeline script

->select “pipeline script from SCM”

->in the SCM select git

->after selecting the git paste your repository link which is previously forked and saved
->specify your branch like “*/master” or “*/main” which is showing in your github repository

->specify here

->after that clock on Save


->after that you will able to see this on your screen
->Note:Before clicking build you should make sure that docker desktop application is opened and
running in the background

->click on BuildNow

->after build you will get success mark and build number in the bottom

->click on that #1

->on the left side you will able to see console outpot, click on it
-> in the bottom you should get success like

->you can see the docker iamge in the docker desktop application

You might also like