Skip to content

Latest commit

 

History

History
68 lines (41 loc) · 1.48 KB

README.md

File metadata and controls

68 lines (41 loc) · 1.48 KB

Push a Jetty Docker image to Azure Container Registry

acr/jetty/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_JETTY_IMAGE=jetty:latest

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

Cleanup

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

2m