This application is for use in demonstrating scenarios for Azure Container Registry Tasks. ACR Tasks is a suite of features within Azure Container Registry for performing Docker container builds on Azure, as well as automated OS and framework patching for Docker containers.
This project includes the following Dockerfiles:
- Dockerfile - Non-parameterized Dockerfile for building the application. References a base image in Docker Hub.
- Dockerfile-app - Parameterized, accepts the
REGISTRY_NAMEargument to specify the FQDN of the container registry from which the base image is pulled. - Dockerfile-base - Defines a base image for the application defined in Dockerfile-app.
This project also includes the following YAML files:
- taskmulti.yaml - Specifies a multistep task to build, run, and push a container image specified by Dockerfile.
- taskmulti-multiregistry.yaml - Specifies a multistep task to build, run, and push container images specified by Dockerfile to multiple registries.
Here is a blog post with the concept and detailed instructions:
This project is also intended for use with the following articles on docs.microsoft.com:
- Build container images in the cloud with Azure Container Registry Tasks
- Automate container image builds in the cloud when you commit source code
- Run a multi-step container workflow in the cloud when you commit source code
- Automate container image builds when a base image is updated in an Azure container registry
Although intended for use with the companion articles, you can perform the following steps to run the sample application. These steps require a local Docker installation.
git clone https://github.com/awhitney42/commodore-cloudcd commodore-cloudsudo docker build -t commodorecloud:v1 .sudo docker run -d -p 2222:2222 -p 5900:5900 -p 6400:6400 commodorecloud:v1ssh -p 2222 vice@0.0.0.0to access a shell within container- Connect using VNC to 0.0.0.0 to access VICE within the container
telnet 0.0.0.0 6400to access the BBS running on the Commodore in the container