Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.

Latest commit

 

History

History
79 lines (57 loc) · 2.39 KB

File metadata and controls

79 lines (57 loc) · 2.39 KB

Deploy Glassfish on ACA

containerapp/glassfish/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. Build and push a Glassfish application to Azure Container Registry
  4. Create an Azure Container Apps environment

Deploy Glassfish

To deploy the Glassfish container image to Azure Container Apps use the command line below.

  export ACA_GLASSFISH=glassfish

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

  az containerapp show \
    --resource-group $RESOURCE_GROUP \
    --name $ACA_GLASSFISH \
    --query properties.configuration.ingress.fqdn \
    --output tsv

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

And this is served by a custom Glassfish coming from your own Azure
Container Registry.

Cleanup

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

Reference documentation

1m