ACR Builder is the backbone behind Azure Container Registry Tasks.
It can be used to automate container image patching and execute arbitrary containers for complex workflows.
You can find examples of how to create multi-step tasks here.
For a list of all available YAML properties, please review the Task schema.
To understand templating and how to provide custom values to your runs, review templates.
- Docker
With Docker, execute the following commands from the root of the repository.
Linux:
$ docker build -f Dockerfile -t acb .
Windows:
$ docker build -f Windows.Dockerfile -t acb .
$ acb --help
NAME:
acb - run and build containers on Azure Container Registry
USAGE:
acb [global options] command [command options] [arguments...]
VERSION:
38f06e5
COMMANDS:
build build container images
download download the specified context to a destination folder
exec execute a task file
render render the specified template
scan scan a Dockerfile for dependencies
version print the client and runtime versions
getsecret gets the secret value from a specified vault
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
See acb build --help
for a list of all parameters.
$ docker run -v /var/run/docker.sock:/var/run/docker.sock acb build https://github.com/Azure/acr-builder.git
See acb exec --help
for a list of all parameters.
$ docker run -v $(pwd):/workspace --workdir /workspace -v /var/run/docker.sock:/var/run/docker.sock acb exec --homevol $(pwd) -f templating/testdata/helloworld/git-build.yaml --values templating/testdata/helloworld/values.yaml --id demo -r foo.azurecr.io
$ acb render -f acb.yaml --values values.yaml
If your template uses .Run.ID
or other .Run
variables, refer to the full list of parameters using acb render --help
.