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

Latest commit

 

History

History
69 lines (41 loc) · 1.46 KB

File metadata and controls

69 lines (41 loc) · 1.46 KB

Push a Tomcat Docker image to Azure Container Registry

acr/tomcat/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 lines below:

  export ACR_TOMCAT_IMAGE=tomcat:latest

  az acr build --registry $ACR_NAME --image $ACR_TOMCAT_IMAGE .

Cleanup

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

2m