This directory has a Makfile with the instructions needed to deploy to Azure
We are using the shakespeare-ec app. The image was created and tested locally, using a docker engine, see the link, the steps involved here are for deployment.
Note the azure cli must be installed to use this Makfile.
Note: acr is the Azure Container Registry
Refs
- https://docs.microsoft.com/en-us/azure/container-instances/container-instances-tutorial-prepare-acr
- https://docs.microsoft.com/en-us/azure/container-instances/container-instances-tutorial-deploy-app
See also runtime for the steps below
In order to run an app it must be in the container registry for Azure, these steps push to the registry:
- create a resource group
az group create
- create an Azure container registry
az acr create
- login to container registry
az acr login
- tag the local image with the registry name
- get the full name
az acr show
- tag the image
docker tag
- get the full name
- push the image to Azure Container registry
docker push
Once the app is in Azure Container registry you can deploy it.
- deploy the container
az container create
- verify deployment & get the FQDN
az container show
- test the app using FQDN in a browser
- view the container logs
az container logs
Since you are paying for everything, if you don't need this app and once you have finished with your app (or your tests) you must clean up by deleting everything.
Note: If you wish to depoloy permanently you would not do this step.
- delete the group
az group delete