Skip to content

Latest commit

 

History

History
69 lines (42 loc) · 1.56 KB

File metadata and controls

69 lines (42 loc) · 1.56 KB

Build and push a Dropwizard application to Azure Container Registry

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

To build the JAR 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_DROPWIZARD_IMAGE=dropwizard:latest

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

Cleanup

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

4m