Skip to content

Latest commit

 

History

History
74 lines (45 loc) · 1.67 KB

README.md

File metadata and controls

74 lines (45 loc) · 1.67 KB

Build and push a Glassfish application to Azure Container Registry

acr/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

Build the WAR file

To build the WAR file use the following command line:

  mvn package

Build and push the Docker image to your Azure Container Registry

To build and push the Docker image to your ACR use the command line below:

  export ACR_GLASSFISH_IMAGE=glassfish:latest

  az acr build --resource-group $RESOURCE_GROUP --registry $ACR_NAME --image $ACR_GLASSFISH_IMAGE .

You can then use the following command to display the content on the ACR:

  az acr repository list --name $ACR_NAME --output table

Cleanup

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

3m