Skip to content

Commit 5fff98d

Browse files
authored
Merge pull request #93343 from dlepow/acrfix
[ACR] Update builders
2 parents b4364a5 + f3145b6 commit 5fff98d

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

articles/container-registry/container-registry-tasks-pack-build.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ title: Build an Azure Container Registry image from an app
33
description: Use the az acr pack build command to build a container image from an app and push to Azure Container Registry, without using a Dockerfile.
44
services: container-registry
55
author: dlepow
6+
manager: gwallace
67
ms.service: container-registry
78
ms.topic: article
8-
ms.date: 10/10/2019
9+
ms.date: 10/24/2019
910
ms.author: danlep
1011
---
1112

@@ -27,25 +28,23 @@ At a minimum, specify the following when you run `az acr pack build`:
2728
* An Azure container registry where you run the command
2829
* An image name and tag for the resulting image
2930
* One of the [supported context locations](container-registry-tasks-overview.md#context-locations) for ACR Tasks, such as a local directory, a GitHub repo, or a remote tarball
30-
* The name of a Buildpack builder image, such as `cloudfoundry/cnb:0.0.12-bionic`.
31+
* The name of a Buildpack builder image suitable for your application. Azure Container Registry caches builder images such as `cloudfoundry/cnb:0.0.34-cflinuxfs3` for faster builds.
3132

3233
`az acr pack build` supports other features of ACR Tasks commands including [run variables](container-registry-tasks-reference-yaml.md#run-variables) and [task run logs](container-registry-tasks-overview.md#view-task-logs) that are streamed and also saved for later retrieval.
3334

3435
## Example: Build Node.js image with Cloud Foundry builder
3536

36-
The following example builds a container image from the Node.js app in the [Azure-Samples/nodejs-docs-hello-world](https://github.com/Azure-Samples/nodejs-docs-hello-world) repo, using the `cloudfoundry/cnb:0.0.12-bionic` builder:
37+
The following example builds a container image from a Node.js app in the [Azure-Samples/nodejs-docs-hello-world](https://github.com/Azure-Samples/nodejs-docs-hello-world) repo, using the `cloudfoundry/cnb:0.0.34-cflinuxfs3` builder. This builder is cached by Azure Container Registry, so a `--pull` parameter isn't required:
3738

3839
```azurecli
3940
az acr pack build \
4041
--registry myregistry \
4142
--image {{.Run.Registry}}/node-app:1.0 \
42-
--pull --builder cloudfoundry/cnb:0.0.12-bionic \
43+
--builder cloudfoundry/cnb:0.0.34-cflinuxfs3 \
4344
https://github.com/Azure-Samples/nodejs-docs-hello-world.git
4445
```
4546

46-
This example builds the `node-app` image with the `1.0` tag and pushes it to the *myregistry* container registry. Here, the target registry name is explicitly prepended to the image name. If not specified, the registry URL is automatically prepended to the image name.
47-
48-
The `--pull` parameter specifies that the command pulls the latest builder image.
47+
This example builds the `node-app` image with the `1.0` tag and pushes it to the *myregistry* container registry. In this example, the target registry name is explicitly prepended to the image name. If not specified, the registry login server name is automatically prepended to the image name.
4948

5049
Command output shows the progress of building and pushing the image.
5150

@@ -65,7 +64,7 @@ Browse to `localhost:1337` in your favorite browser to see the sample web app. P
6564

6665
## Example: Build Java image with Heroku builder
6766

68-
The following example builds a container image from the Java app in the [buildpack/sample-java-app](https://github.com/buildpack/sample-java-app) repo, using the `heroku/buildpacks:18` builder:
67+
The following example builds a container image from the Java app in the [buildpack/sample-java-app](https://github.com/buildpack/sample-java-app) repo, using the `heroku/buildpacks:18` builder. The `--pull` parameter specifies that the command should pull the latest builder image.
6968

7069
```azurecli
7170
az acr pack build \
@@ -77,8 +76,6 @@ az acr pack build \
7776

7877
This example builds the `java-app` image tagged with the run ID of the command and pushes it to the *myregistry* container registry.
7978

80-
The `--pull` parameter specifies that the command pulls the latest builder image.
81-
8279
Command output shows the progress of building and pushing the image.
8380

8481
After the image is successfully built, you can run it with Docker, if you have it installed. First sign into your registry:

0 commit comments

Comments
 (0)