From cfdccc6bfec2d216b1bcca816aa31b6bdeb41ca1 Mon Sep 17 00:00:00 2001 From: tushar5526 <codingid6@gmail.com> Date: Fri, 30 Sep 2022 10:04:54 +0530 Subject: [PATCH] Added steps --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..749393e --- /dev/null +++ b/README.md @@ -0,0 +1,22 @@ +**Steps to setup E2E deployment using Jenkins, Ansible, Docker Swarm** + +**Pre-Requisite:** Dockerfile for the service should be there. + + +The following steps are to be followed with some modifications. + +<https://drive.google.com/file/d/1Bi8tE-sP0mTkhsVGK0NtCt_dHZmMyJmw/view?ts=6329b80c> + + + +- During Jenkins installation, after copying the jobs **chown** the **/var/lib/jenkins/jobs/** to **jenkins user** +- In the elastic search configuration, update the elastic search file as per your cluster needs +- In the Install **Docker Compose** section, run **docker swarm init** before issuing other commands +- When the Jenkins is up and ready to go, we have to take care of the following + +- Update **“docker-serverâ€** URL in Jenkins Jobs to pull and push images in build jobs +- Add ssh keys for your server from the Jenkins server before using ansible playbooks +- Populate the environment variables for ansible-playbooks in Deploy jobs of Jenkins +- Update the Nginx conf files according to the services of your application + +- **Gotcha:** React environment variables are pushed during the build, so runtime docker environment variables will not be picked up by React Apps. Therefore, configure the Dockerfiles accordingly and builds accordingly. \ No newline at end of file -- GitLab