# Project Structure & summary.

Let us see How we worked to achieve everything we have done so far.<img src="https://2593464885-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3DMI85ymmo2BqduKTK9p%2Fuploads%2FEs56PhanKtmfVL7KinDi%2FCode%20from%20Github%20to%20Jenkins.png?alt=media&#x26;token=c8680df3-f530-48e4-864b-88ec2fbc88e1" alt="" data-size="original">&#x20;

As you can see in the above image:

1. To create the build file we started with cloning our code from [**Github repository**](https://github.com/N4si/LearnDevOps-on-AWS) to **Jenkins**(hosted on AWS EC2 Linux server) and installing **Git**. Build file was transferred to **Tomcat** container on **Docker** on another **EC2** server and our Application was LIVE.
2. Then we automated a bit by creating a **DOCKERFILE** which had instructions to create and build tomcat images and run tomcat container. Using this approach our application was LIVE.
3. Then we were introduced to a new tool **ANSIBLE**. We created Ansible playbooks with instructions to perform automatically on hosts. **ansible\_playbook** are very useful for setting up a large number of **hosts**. Using this approach everything was automated and our application was LIVE.
4. Lastly, we used Github **webhooks** so that if there is any update or code change Jenkins should detect it and build automatically. With this step, we had updated the code and our application was LIVE.

### Video Demonstration of the Project on LinkedIn:

{% embed url="<https://www.linkedin.com/posts/nasiullha-chaudhari-5a80601a8_aws-docker-github-ugcPost-6867056204326162432-2taF>" %}
Video demonstration
{% endembed %}

This is the end of this amazing learning, hope you learned something. If any queries, suggestions, or advice. Feel free to reach me on my Linkedin: <https://www.linkedin.com/in/nasiullha-chaudhari-5a80601a8/>&#x20;
