Skip to content

Commit 85777c8

Browse files
author
RoseHJM
committed
Added includes file for Build container image with script section in each article.
1 parent 0d1e5b5 commit 85777c8

File tree

4 files changed

+36
-19
lines changed

4 files changed

+36
-19
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,10 @@ When authoring environment definitions to use your custom image in their deploym
225225
runner: "{YOUR_REGISTRY}.azurecr.io/{YOUR_REPOSITORY}:{YOUR_TAG}"
226226
```
227227
228+
## Build a container image with a script
229+
230+
[!INCLUDE [custom-image-script](includes/custom-image-script.md)]
231+
228232
## Access operation logs and error details
229233
230234
ADE stores error details for a failed deployment the *$ADE_ERROR_LOG* file.

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

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -123,25 +123,7 @@ runner: "{YOUR_REGISTRY}.azurecr.io/{YOUR_REPOSITORY}:{YOUR_TAG}"
123123
124124
## Build a container image with a script
125125
126-
Microsoft provides a quickstart script to help you get started. The script builds your image and pushes it to a specified Azure Container Registry (ACR) under the repository `ade` and the tag `latest`.
127-
128-
To use the script, you must:
129-
130-
1. Configure a Dockerfile and scripts folder to support the ADE extensibility model.
131-
1. Supply a registry name and directory for your custom image.
132-
1. Have the Azure CLI and Docker Desktop installed and in your PATH variables.
133-
1. Have permissions to push to the specified registry.
134-
135-
You can run the script [here](https://github.com/Azure/deployment-environments/blob/custom-runner-private-preview/Runner-Images/quickstart-image-build.ps1).
136-
137-
You can call the script using the following command in PowerShell:
138-
```powershell
139-
.\quickstart-image-build.ps1 -Registry '{YOUR_REGISTRY}' -Directory '{DIRECTORY_TO_YOUR_IMAGE}'
140-
```
141-
Additionally, if you would like to push to a specific repository and tag name, you can run:
142-
```powershell
143-
.\quickstart-image.build.ps1 -Registry '{YOUR_REGISTRY}' -Directory '{DIRECTORY_TO_YOUR_IMAGE}' -Repository '{YOUR_REPOSITORY}' -Tag '{YOUR_TAG}'
144-
```
126+
[!INCLUDE [custom-image-script](includes/custom-image-script.md)]
145127
146128
## Access operation logs and error details
147129

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ When authoring environment definitions to use your custom image in their deploym
198198
runner: "{YOUR_REGISTRY}.azurecr.io/{YOUR_REPOSITORY}:{YOUR_TAG}"
199199
```
200200
201+
## Build a container image with a script
202+
203+
[!INCLUDE [custom-image-script](includes/custom-image-script.md)]
204+
201205
## Access operation logs and error details
202206
203207
ADE stores error details for a failed deployment the *$ADE_ERROR_LOG* file.
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
ms.service: deployment-environments
3+
ms.topic: include
4+
author: RoseHJM
5+
ms.author: rosemalcolm
6+
ms.date: 05/03/2024
7+
---
8+
9+
Microsoft provides a quickstart script to help you get started. The script builds your image and pushes it to a specified Azure Container Registry (ACR) under the repository `ade` and the tag `latest`.
10+
11+
To use the script, you must:
12+
13+
1. Configure a Dockerfile and scripts folder to support the ADE extensibility model.
14+
1. Supply a registry name and directory for your custom image.
15+
1. Have the Azure CLI and Docker Desktop installed and in your PATH variables.
16+
1. Have permissions to push to the specified registry.
17+
18+
You can run the script [here](https://github.com/Azure/deployment-environments/blob/custom-runner-private-preview/Runner-Images/quickstart-image-build.ps1).
19+
20+
You can call the script using the following command in PowerShell:
21+
```powershell
22+
.\quickstart-image-build.ps1 -Registry '{YOUR_REGISTRY}' -Directory '{DIRECTORY_TO_YOUR_IMAGE}'
23+
```
24+
Additionally, if you would like to push to a specific repository and tag name, you can run:
25+
```powershell
26+
.\quickstart-image.build.ps1 -Registry '{YOUR_REGISTRY}' -Directory '{DIRECTORY_TO_YOUR_IMAGE}' -Repository '{YOUR_REPOSITORY}' -Tag '{YOUR_TAG}'
27+
```

0 commit comments

Comments
 (0)