Skip to content

Latest commit

 

History

History
88 lines (60 loc) · 2.39 KB

File metadata and controls

88 lines (60 loc) · 2.39 KB

Deploy WildFly

container/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
  3. Create an 'acrpull' Service Principal
  4. Push a WildFly Docker image to Azure Container Registry

Deploy WildFly

To deploy WildFly use the following command line:

  export ACI_WILDFLY=aci-wildfly-$RANDOM

  az container create \
    --resource-group $RESOURCE_GROUP \
    --name $ACI_WILDFLY \
    --image $ACR_NAME.azurecr.io/$ACR_WILDFLY_IMAGE \
    --registry-login-server $ACR_NAME.azurecr.io \
    --registry-username $ACR_PULL_SERVICE_PRINCIPAL_ID \
    --registry-password $ACR_PULL_SERVICE_PRINCIPAL_PASSWORD \
    --dns-name-label $ACI_WILDFLY \
    --ports 8080

  echo `az container show \
    --resource-group $RESOURCE_GROUP \
    --name $ACI_WILDFLY \
    --query ipAddress.fqdn \
    --output tsv`:8080

Then open your browser to the URL echoed above and you should see:

And this is served by a custom WildFly using a Docker image coming from our 
own Azure Container Registry.

Cleanup

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

2m