This repository contains source code for a Python Application built on Azure WebApp for Linux containers that contains the following.
- A Docker file -
Dockerfile
- Python web app source code (Flask) -
src
- Deployment scripts -
scripts
- An init file for the Docker container -
init.sh
- A migrations folder for Flask database migrations -
migrations
- Install a code editor to modify and view the application code. For the sample app, Visual Studio Code was used.
- Install the Azure CLI on your development machine.
- Install Git on your system. Git is used to clone the source code locally.
- Install jq if you are on a Linux based system, jq being a tool for querying JSON in a user friendly way.
Change directory into the scripts folder cd scripts
- If you are on powershell run the
deploy-powershell.ps1
file by typing./deploy-powershell.ps1 <REGION> <RESOURCE_GROUP_NAME>
replacing the region and resource group name with suitable Azure regions and a name for the resource group - If you are on linux run the
deploy-bash.sh
file by typing/deploy-bash.sh <REGION> <RESOURCE_GROUP_NAME>
, you may have to make the file executable by typingchmod +x deploy-bash.sh
- After the resources have been deployed, read the documentation contained here to configure the resources in order to make the app run, without the configuration described in the documentation the application will not run
NOTE
After deployment this application needs to be configured as outlined in the documentation here App Documentation, otherwise the components will not work correctly without specifying the necessary steps