This tutorial shows you how to deploy this containerized app to Azure Web App for Containers using Azure Toolkit for Eclipse. Below are the major steps in this tutorial.
-
login your Azure CLI, and set your subscription id
az login az account set -s <your-subscription-id>
-
Run below command to create an Azure Container Registry. After creation, use
login server
as Container Registry URL in the next section.az acr create -n <your-registry-name> -g <your-resource-group-name> --sku <sku-name>
where `<sku-name>` is one of the following: `{Basic,Managed_Basic,Managed_Standard,Managed_Premium}`.
-
Run below command to show your Azure Container Registry credentials. You will use Docker registry username and password in the next section.
az acr credential show -n <your-registry-name>
-
Create or import a Maven project in Eclipse.
-
Right-click on the project and choose "Azure -> Add Docker Support". It will automatically generate a Dockerfile.
-
Right-click on the project and choose "Azure -> Run on Web App on Linux".
-
Provide Azure Container Registry and Web App for Containers configuration info, and hit run.
You will see this app successfully running on Azure Web App for Containers.