You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Tutorial: Automate container image builds when a base image is updated in an Azure container registry
13
13
14
-
ACR Tasks supports automated container image builds when a container's [base image is updated](container-registry-tasks-base-images.md), such as when you patch the OS or application framework in one of your base images.
14
+
[ACR Tasks](container-registry-tasks-overview.md) supports automated container image builds when a container's [base image is updated](container-registry-tasks-base-images.md), such as when you patch the OS or application framework in one of your base images.
15
15
16
16
In this tutorial, you learn how to create an ACR task that triggers a build in the cloud when a container's base image is pushed to the same registry. You can also try a tutorial to create an ACR task that triggers an image build when a base image is pushed to [another Azure container registry](container-registry-tutorial-private-base-image-update.md).
17
17
@@ -158,7 +158,7 @@ cat taskhelloworld linux Succeeded Manual 2020-11-20T23:07:29Z
158
158
Here you simulate a framework patch in the base image. Edit **Dockerfile-base**, and add an "a" after the version number defined in `NODE_VERSION`:
159
159
160
160
```dockerfile
161
-
ENV NODE_VERSION 15.2.2a
161
+
ENV NODE_VERSION 15.2.1a
162
162
```
163
163
164
164
Run a quick task to build the modified base image. Take note of the **Run ID** in the output.
# Tutorial: Automate container image builds when a base image is updated in another private container registry
10
10
11
-
ACR Tasks supports automated image builds when a container's [base image is updated](container-registry-tasks-base-images.md), such as when you patch the OS or application framework in one of your base images.
11
+
[ACR Tasks](container-registry-tasks-overview.md) supports automated image builds when a container's [base image is updated](container-registry-tasks-base-images.md), such as when you patch the OS or application framework in one of your base images.
12
12
13
13
In this tutorial, you learn how to create an ACR task that triggers a build in the cloud when a container's base image is pushed to another Azure container registry. You can also try a tutorial to create an ACR task that triggers an image build when a base image is pushed to the [same Azure container registry](container-registry-tutorial-base-image-update.md).
Navigate to `http://localhost:8080` in your browser, and you should see the Node.js version number rendered in the web page, similar to the following. In a later step, you bump the version by adding an "a" to the version string.
163
163
164
-
![Screenshot that shows a sample application rendered in a browser.][base-update-01]
164
+
:::image type="content" source="media/container-registry-tutorial-base-image-update/base-update-01.png" alt-text="Screenshot of sample application in browser":::
165
165
166
166
To stop and remove the container, run the following command:
167
167
@@ -197,7 +197,7 @@ caw taskhelloworld linux Succeeded Commit 2020-11-20T23:16:
197
197
Here you simulate a framework patch in the base image. Edit **Dockerfile-base**, and add an "a" after the version number defined in `NODE_VERSION`:
198
198
199
199
```Dockerfile
200
-
ENV NODE_VERSION 15.2.2a
200
+
ENV NODE_VERSION 15.2.1a
201
201
```
202
202
203
203
Run a quick task to build the modified base image. Take note of the **Run ID** in the output.
Navigate to http://localhost:8081 in your browser, and you should see the updated Node.js version number (with the "a") in the web page:
246
246
247
-
![Screenshot of sample application rendered in browser][base-update-02]
247
+
:::image type="content" source="media/container-registry-tutorial-base-image-update/base-update-02.png" alt-text="Screenshot of updated sample application in browser":::
248
248
249
249
What's important to note is that you updated your **base** image with a new version number, but the last-built **application** image displays the new version. ACR Tasks picked up your change to the base image, and rebuilt your application image automatically.
250
250
@@ -284,6 +284,3 @@ In this tutorial, you learned how to use a task to automatically trigger contain
# Tutorial: Build and deploy container images in the cloud with Azure Container Registry Tasks
13
13
14
-
**ACR Tasks** is a suite of features within Azure Container Registry that provides streamlined and efficient Docker container image builds in Azure. In this article, you learn how to use the *quick task* feature of ACR Tasks.
14
+
[ACR Tasks](container-registry-tasks-overview.md) is a suite of features within Azure Container Registry that provides streamlined and efficient Docker container image builds in Azure. In this article, you learn how to use the *quick task* feature of ACR Tasks.
15
15
16
16
The "inner-loop" development cycle is the iterative process of writing code, building, and testing your application before committing to source control. A quick task extends your inner-loop to the cloud, providing you with build success validation and automatic pushing of successfully built images to your container registry. Your images are built natively in the cloud, close to your registry, enabling faster deployment.
17
17
@@ -268,7 +268,7 @@ Server running at http://localhost:80
268
268
269
269
When `Server running at http://localhost:80` appears, navigate to the container's FQDN in your browser to see the running application. The FQDN should have been displayed in the output of the `az container create` command you executed in the previous section.
270
270
271
-
![Screenshot of sample application rendered in browser][quick-build-02-browser]
271
+
:::image type="content" source="media/container-registry-tutorial-quick-build/quick-build-02-browser.png" alt-text="Sample application running in browser":::
272
272
273
273
To detach your console from the container, hit `Control+C`.
0 commit comments