Skip to content

Latest commit

 

History

History
78 lines (56 loc) · 2.32 KB

File metadata and controls

78 lines (56 loc) · 2.32 KB

Deploy a Helidon application

containerapp/helidon/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. Push a Helidon application to Azure Container Registry
  4. Create an Azure Container Apps environment

Deploy the Helidon application

To deploy the Helidon container image to Azure Container Apps use the command lines below.

  export ACA_HELIDON=helidon

  az containerapp create \
    --name $ACA_HELIDON \
    --resource-group $RESOURCE_GROUP \
    --environment $ACA_ENVIRONMENT_NAME \
    --image $ACR_NAME.azurecr.io/$ACR_HELIDON_IMAGE \
    --target-port 8080 \
    --ingress 'external' \
    --registry-server $ACR_NAME.azurecr.io \
    --min-replicas 1

  echo $(az containerapp show \
    --resource-group $RESOURCE_GROUP \
    --name $ACA_HELIDON \
    --query properties.configuration.ingress.fqdn \
    --output tsv)/greet

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

{"message":"Hello World!"}

Cleanup

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

Reference documentation

1m