Skip to content

Files

Latest commit

 

History

History
75 lines (53 loc) · 2.16 KB

File metadata and controls

75 lines (53 loc) · 2.16 KB

Deploy a Quarkus application

container/quarkus/README.md

Prerequisites

This example assumes you have previously completed the following examples:

  1. Create an Azure Resource Group
  2. Create an Azure Container Registry
  3. Create an 'acrpull' Service Principal
  4. Push a Quarkus Docker application to Azure Container Registry

Deploy the Quarkus application

To deploy the application use the following command line:

  export ACI_QUARKUS=aci-quarkus-$RANDOM

  az container create \
    --resource-group $RESOURCE_GROUP \
    --name $ACI_QUARKUS \
    --image $ACR_NAME.azurecr.io/$ACR_QUARKUS_IMAGE \
    --registry-login-server $ACR_NAME.azurecr.io \
    --registry-username $ACR_PULL_SERVICE_PRINCIPAL_ID \
    --registry-password $ACR_PULL_SERVICE_PRINCIPAL_PASSWORD \
    --dns-name-label $ACI_QUARKUS \
    --ports 8080

  echo `az container show \
    --resource-group $RESOURCE_GROUP \
    --name $ACI_QUARKUS \
    --query ipAddress.fqdn \
    --output tsv`:8080

Then open your browser to the URL echoed above and you should see:

hello

Cleanup

Do NOT forget to remove the resources once you are done running the example.

2m