Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/Add Azure deployment automation #72

Merged
merged 4 commits into from Jan 28, 2019

Conversation

Projects
3 participants
@c-w
Copy link
Contributor

commented Jan 25, 2019

Currently the application can easily be deployed to Heroku via the Procfile. This change adds an ARM template to additionally easily deploy the application to Azure.

To make management of the application as straight forward as possible, the ARM template leverages PaaS solutions: the Django application is deployed via the Docker container to a Web App for Containers and the app's data storage is a managed PostgreSQL instance.

For additional security, the PostgreSQL database is configured to only allow connections from other Azure IPs. If someone wishes to connect to the database manually, e.g. via pgadmin, the client's IP must be white-listed in the database server's firewall (instructions).

Given that the resources are deployed asynchronously by ARM, sometimes the web app may be provisioned before the database is set up or before the database server's firewall is correctly set up. To prevent race conditions, this change includes a Django management script that makes the application wait until the database is available before starting up. This script will also be useful in other contexts such as using an external database linked to the application in docker-compose or kubernetes.

@c-w c-w force-pushed the CatalystCode:feature/azure branch from 93511a7 to de52916 Jan 25, 2019

@c-w c-w force-pushed the CatalystCode:feature/azure branch from 25522d4 to 8785dec Jan 25, 2019

@Hironsan Hironsan merged commit 4a246d8 into chakki-works:master Jan 28, 2019

2 checks passed

Travis CI - Pull Request Build Passed
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details

@BrambleXu BrambleXu added this to PR Status in v1.0.0 Jan 28, 2019

@c-w c-w deleted the CatalystCode:feature/azure branch Mar 22, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.