-
Notifications
You must be signed in to change notification settings - Fork 0
Setting Up an Azure Container Registry
Microsoft Azure uses the Azure Container Registry for securely building and deploying your applications. To create an Azure Container Registry, you need to create an Azure Resource group. An Azure resource group is a logical container into which Azure resources are deployed and managed.
For more information about commands used in the following procedure, see Microsoft Azure CLI documentation.
- Set up the Microsoft Azure command line environment.
- For TIBCO BusinessEvents application container image that you want to deploy to the Kubernetes cluster, see Containerize TIBCO BusinessEvents Application.
Note: If you build your container image using buildah
tool, similar to docker login
,tag
,push
or pull
commands same is available with buildah
tool.
-
Create a resource group by using the
az group create
command.az group create --name <resource_group_name> --location <location>
-
Create an Azure Container Registry instance in your resource group by using the
az acr create
command.az acr create --resource-group <resource_group_name> --name <registry_name> --sku Basic --admin-enabled true
-
Login to the container registry created earlier by using the
az acr login
command.az acr login --name <registry_name>
The command returns a Login Succeeded message once completed.
-
To use the TIBCO BusinessEvents application container image with Azure Container Registry, tag the image with the login server address of your registry.
-
View the list of your local images by using the docker images command.
$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE fdcache latest 4675398c9172 13 minutes ago 694MB
-
Get the login server address for the Azure Container Registry by using the
az acr list
command.az acr list --resource-group <resource_group_name> --query "[].{acrLoginServer:loginServer}" --output table
-
Tag your application image with login server address of your registry from the earlier step. This creates an alias of the application image with a fully qualified path to your registry.
docker tag fdcache <registry_login_server>/fdcache:01
-
Verify the tags applied to the image by running the
docker images
command again.$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE mycontainerregistry.azuecr.io/fdcache 01 4675398c9172 13 minutes ago 694MB
-
-
Push the application image to your container registry by using the
docker push
command.docker push <registry_login_server>/fdcache:01
-
Validate if the image is uploaded to your registry.
az acr repository list --name <registry_login_server> --output table
- How to deploy TIBCO BusinessEvents application is available here