An Azure Resource Manager template for an environment suitable for rails production deployments
This template will install a simple Ubuntu linux server with a docker container for a Postgres DB, this is suitable for a staging environment or similar. This script also installs the Azure Linux OS Patching extension, so OS updates will be applied at scheduled intervals, and the server rebooted if necessary. As such this is not suitable for production deployments, as the server is not part of an availability group.
- Using Azure CLI
Clone the files to your local machine, and then open a terminal at the cloned directory. Make sure you are logged in using azure cli, and that you are in Resource Manager mode. (More on how to do that at the link below)
azure group create <resource group name> <location>; azure group deployment create -v -f RailsBuildAgent.json <resource group name> <deployment name>
https://azure.microsoft.com/en-us/documentation/articles/xplat-cli-azure-resource-manager/
- Using Powershell
https://azure.microsoft.com/en-us/documentation/articles/powershell-azure-resource-manager/
- Using Azure Portal
Click the "Deploy to Azure" button above.