Skip to content

Latest commit

 

History

History
81 lines (50 loc) · 1.77 KB

README.md

File metadata and controls

81 lines (50 loc) · 1.77 KB

Push a Quarkus Docker image to Azure Container Registry

acr/quarkus/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 -ntp package

Run the example locally

To run the example locally use the following Maven command line:

  mvn quarkus:dev

You can see the application in action at http://localhost:8080/hello

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_QUARKUS_IMAGE=quarkus:latest

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

Cleanup

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

4m