Skip to content

Sample Node.js application for use in demonstrating Azure Container Registry Build.

License

Notifications You must be signed in to change notification settings

gsxmax/acr-build-helloworld-node

 
 

Repository files navigation

page_type languages products description urlFragment
sample
javascript
azure
This Node.js application is for use in demonstrating scenarios for Azure Container Registry Tasks.
acr-build-helloworld-node

ACR Build Hello World

This Node.js 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.

Features

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_NAME argument 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.

Getting Started

Companion articles

This project is intended for use with the following articles on docs.microsoft.com:

Quickstart

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.

  1. git clone https://github.com/Azure-Samples/acr-build-helloworld-node
  2. cd acr-build-helloworld-node
  3. docker build -t helloacrbuild:v1 .
  4. docker run -d -p 8080:80 helloacrbuild:v1
  5. Navigate to http://localhost:8080 to view the running application

Resources

Azure Container Registry

Azure Container Registry documentation

About

Sample Node.js application for use in demonstrating Azure Container Registry Build.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 77.4%
  • Dockerfile 22.6%