This is a solution for the writen task
- you are running a linux box
- if using windows you know how to use bash shell
- I've built a simple api with python and flask.
- Dockerized the application , built the image and uploaded it to my repo on dockerhub.
- then used it in the automation files
In this option we will use 2 methods choose what you want.
In this option we will deploy 3 node app:
- App server. node1
- MasterDB VM (postgresql-13) node2
- SlaveDB VM for replication node3
- Clone this repo
git clone https://github.com/AhmedMojahed/devops-task.git
or just download the zip file 2. Navigate to the repo directory
cd devops-task