Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 899 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 899 Bytes

DevOpsArch_TCS Project1 execution Steps

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)

2.Push an Ansible configuration on test serverto install docker (Job 2)

3.Pull the PHP website, and the Dockerfile from the git repo and build and deploy your PHP docker container. After. (Job 3)

4.If Job 3fails, delete the running container on Test Server