Skip to content

Files

Latest commit

48e75f9 · Jan 6, 2025

History

History

wildfly

Push a WildFly Docker image to Azure Container Registry

acr/wildfly/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 line below:

  export ACR_WILDFLY_IMAGE=wildfly:latest

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

Cleanup

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

3m