Skip to content

Latest commit

 

History

History
70 lines (35 loc) · 3.12 KB

README2.md

File metadata and controls

70 lines (35 loc) · 3.12 KB

step1: we have fork this reposity from LondheShubham153

image

Step2: In Jenkins select GitHub project and copy the fork repository URL like this

image

Then paste it in Jenkins GitHub project section like this

image

Step 4: In the Source Code Management select Git and copy the repository HTTP URL like this

image

and paste it in the Source Code Management section and set the Branch Specifier to master like this and you no need add credentials here because it public repository.

image

step 5: You need to install docker-compose in the server

sudo apt-get install docker-compose

image

Step 6: Give permission to Jenkins and reboot the server and reboot your Jenkins as well like this

image

image

Step 7: In the Build steps run these commands and click save

docker-compose down

docker-compose up -d

image

Step 8: In instance, security group add 8000 port because we have added port 8000 in docker-compose.ymal file

image

image

Step 9: Now click on Build now

image

you can see its running and click on it

image

and go to console output you see this

image

Step 10: Now go to instance IP address

image

Copy and paste it into google chrome and add ":8000" at the end of the IP address to it like this

image

Now you see this page and also we have completed our task 02 as well which deploy the node todo app through docker-compose in Jenkins

image