Skip to content

Commit 4dce137

Browse files
author
RoseHJM
committed
Changed structure
1 parent 387373f commit 4dce137

File tree

1 file changed

+16
-21
lines changed

1 file changed

+16
-21
lines changed

articles/deployment-environments/how-to-configure-extensibility-bicep-container-image.md

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: Learn how to use the ADE extensibility model to build and utilize c
55
ms.service: deployment-environments
66
author: RoseHJM
77
ms.author: rosemalcolm
8-
ms.date: 05/23/2024
8+
ms.date: 05/28/2024
99
ms.topic: how-to
1010

1111
#customer intent: As a developer, I want to learn how to build and utilize custom images within my environment definitions for deployment environments.
@@ -30,12 +30,10 @@ The ADE team provides a selection of images to get you started, including a core
3030
## Use container images with ADE
3131

3232
You can take one of the following approaches to use container images with ADE:
33-
34-
- Use the standard image provided by ADE
35-
- Customize a container image
36-
- Build a custom container image using the script provided by ADE
37-
38-
For simple scenarios, you can use the standard Bicep container image provided by ADE. For more complex scenarios, you can customize a container image or build a custom container image using the script provided by ADE.
33+
- **Use the standard container image:** For simple scenarios, use the standard Bicep container image provided by ADE.
34+
- **Create a custom container image:** For more complex scenarios, create a custom container image that meets your specific requirements.
35+
36+
Regardless of which approach you choose, you must specify the container image in your environment definition to deploy your Azure resources.
3937

4038
## Use the standard Bicep container image
4139

@@ -54,22 +52,24 @@ The following example shows a runner that references the sample Bicep container
5452
```
5553
You can see the standard Bicep container image in the ADE sample repository under the [Runner-Images folder for the ARM-Bicep](https://github.com/Azure/deployment-environments/tree/main/Runner-Images/ARM-Bicep) image.
5654
55+
For more information about how to create environment definitions that use the ADE container images to deploy your Azure resources, see [Add and configure an environment definition](configure-environment-definition.md).
56+
5757
## Create a custom bicep container image
5858
59-
Creating a custom container image allows you to customize your deployments and deletions to fit your workflow. You can create custom images based on the ADE standard container images.
59+
Creating a custom container image allows you to customize your deployments to fit your requirements. You can create custom images based on the ADE standard container images.
60+
61+
After you complete the image customization, you must build the image and push it to your container registry.
6062
61-
### Create and build a Docker image
63+
### Create and customize a container image with Docker
6264
6365
In this example, you learn how to build a Docker image to utilize ADE deployments and access the ADE CLI, basing your image off of one of the ADE authored images.
6466
6567
The ADE CLI is a tool that allows you to build custom images by using ADE base images. You can use the ADE CLI to customize your deployments and deletions to fit your workflow. The ADE CLI is preinstalled on the sample images. To learn more about the ADE CLI, see the [CLI Custom Runner Image reference](https://aka.ms/deployment-environments/ade-cli-reference).
6668
67-
To build an image configured for ADE, follow these steps:
69+
To create an image configured for ADE, follow these steps:
6870
1. Base your image on an ADE-authored sample image or the image of your choice by using the FROM statement.
6971
1. Install any necessary packages for your image by using the RUN statement.
7072
1. Create a *scripts* folder at the same level as your Dockerfile, store your *deploy.sh* and *delete.sh* files within it, and ensure those scripts are discoverable and executable inside your created container. This step is necessary for your deployment to work using the ADE core image.
71-
1. Build and push your image to your container registry, and ensure it's accessible to ADE.
72-
1. Reference your image in the `runner` property of your environment definition.
7373
7474
### Select a sample container image by using the FROM statement
7575
@@ -255,26 +255,21 @@ When you're ready to push your image to your registry, run the following command
255255
docker push {YOUR_REGISTRY}.azurecr.io/{YOUR_IMAGE_LOCATION}:{YOUR_TAG}
256256
```
257257

258-
## Connect the image to your environment definition
259-
260-
When authoring environment definitions to use your custom image in their deployment, edit the `runner` property on the manifest file (environment.yaml or manifest.yaml).
261-
262-
```yaml
263-
runner: "{YOUR_REGISTRY}.azurecr.io/{YOUR_REPOSITORY}:{YOUR_TAG}"
264-
```
265-
266258
## [Build a container image with a script](#tab/build-a-container-image-with-a-script/)
267259

268260
[!INCLUDE [custom-image-script](includes/custom-image-script.md)]
269261

262+
---
263+
270264
## Connect the image to your environment definition
271265

272266
When authoring environment definitions to use your custom image in their deployment, edit the `runner` property on the manifest file (environment.yaml or manifest.yaml).
273267

274268
```yaml
275269
runner: "{YOUR_REGISTRY}.azurecr.io/{YOUR_REPOSITORY}:{YOUR_TAG}"
276270
```
277-
---
271+
272+
To learn more about how to create environment definitions that use the ADE container images to deploy your Azure resources, see [Add and configure an environment definition](configure-environment-definition.md).
278273
279274
## Access operation logs and error details
280275

0 commit comments

Comments
 (0)