AhmedMojahed / halan-task

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Halan-task

This is a solution for the writen task

Assumptions

  • you are running a linux box
  • if using windows you know how to use bash shell

Programming

  • 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

Deployment: Option #1

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

Getting Started

  1. 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

Local(on-premise) Deployment

Prerequisites

  1. Install Vagrant
  2. Install Asnible
  3. Install virtualbox

Go to the local deployment folder for more instruction on how to use the solution

Azure Deployment

Prerequisites

  1. Install Azure cli
  2. Install Asnible
  3. Install Terraform

Go to the Azure deployment folder for more instruction on how to use the solution

About


Languages

Language:HCL 71.2%Language:Python 14.4%Language:Shell 12.8%Language:Dockerfile 1.6%