- Created Python / flask application named script as hello.py
- Written unit test cases for application and named script as **hello.test.py **
- Dockerized application using DockerFile and push to the docker hub
- Created ec2 instance using terraform script terraform/main.tf
- Configured deployment on EC2 instance --> installed prerequisites like python3,pip , docker, nginx etc..
- Installed Nginx proxy and if the app does not respond to a request in 30 sec the web server times out.you can refer nginx.conf and restarted nginx server
- I have Setup jenkins job to build a new docker image and when i push new changes to the branch and will deploy the updated code on EC2
- Created Jenkins freestyle job and installed ssh remote host plugin to connect to ec2 instance :
- and ran few docker commands to build and deploy docker into ec2 instance