Skip to content

Latest commit

 

History

History
69 lines (42 loc) · 1.54 KB

README.md

File metadata and controls

69 lines (42 loc) · 1.54 KB

Build and push a Piranha application to Azure Container Registry

acr/piranha/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 example locally

To build the WAR file use the following Maven command line:

  mvn package

Build and push the container image to your Azure Container Registry

To build and push the container image to your ACR use the command lines below:

  export ACR_PIRANHA_IMAGE=piranha:latest

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

Cleanup

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

4m