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
Copy file name to clipboardExpand all lines: articles/container-registry/container-registry-oras-artifacts.md
+32-37Lines changed: 32 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
-
title: Push and pull supply chain artifacts
3
-
description: Push and pull supply chain artifacts using Azure Registry (Preview)
2
+
title: Attach, push, and pull supply chain artifacts
3
+
description: Attach, push, and pull supply chain artifacts using Azure Registry (Preview)
4
4
author: SteveLasker
5
5
manager: gwallace
6
6
ms.topic: article
@@ -21,7 +21,7 @@ ORAS Artifacts support is a preview feature and subject to [limitations](#previe
21
21
22
22
## Prerequisites
23
23
24
-
***ORAS CLI** - The ORAS CLI enables push, discover, pull of artifacts to an ORAS Artifacts enabled registry.
24
+
***ORAS CLI** - The ORAS CLI enables attach, copy, push, discover, pull of artifacts to an ORAS Artifacts enabled registry.
25
25
***Azure CLI** - To create an identity, list and delete repositories, you need a local installation of the Azure CLI. Version 2.29.1 or later is recommended. Run `az --version `to find the version. If you need to install or upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli).
26
26
***Docker (optional)** - To complete the walkthrough, a container image is referenced. You can use Docker installed locally to build and push a container image, or reference an existing container image. Docker provides packages that easily configure Docker on any [macOS][docker-mac], [Windows][docker-windows], or [Linux][docker-linux] system.
27
27
@@ -31,11 +31,11 @@ ORAS Artifacts support is not available in the government or China clouds, but a
31
31
32
32
## ORAS installation
33
33
34
-
Download and install a preview ORAS release for your operating system. See [ORAS Install instructions][oras-install-docs] for how to extract and install the file for your operating system, referencing an Alpha.1 preview build from the [ORAS GitHub repo][oras-preview-install]
34
+
Download and install a preview ORAS release for your operating system. See [ORAS installation instructions][oras-install-docs] for how to extract and install the file for your operating system. This article uses ORAS CLI 0.14.1 to demonstrate how to manage supply chain artifacts in ACR.
35
35
36
36
## Configure a registry
37
37
38
-
Configure environment variables to easily copy/paste commands into your shell. The commands can be run in the [Azure Cloud Shell](https://shell.azure.com/)
38
+
Configure environment variables to easily copy/paste commands into your shell. The commands can be run in the [Azure Cloud Shell](https://shell.azure.com/).
39
39
40
40
```console
41
41
ACR_NAME=myregistry
@@ -65,7 +65,7 @@ az acr create \
65
65
--output jsonc
66
66
```
67
67
68
-
In the command output, note the `zoneRedundancy` property for the registry. When enabled, the registry is zone redundant, and ORAS Artifact enabled:
68
+
In the command output, note the `zoneRedundancy` property for the registry. When enabled, the registry is zone redundant, and ORAS Artifact enabled.
### Push a signature to the registry, as a reference to the container image
154
+
### Attach a signature to the registry, as a reference to the container image
155
155
156
-
The ORAS command pushes the signature to a repository, referencing another artifact through the `subject` parameter. The `--artifact-type` provides for differentiating artifacts, similar to file extensions that enable different file types. One or more files can be pushed by specifying `file:mediaType`
156
+
The ORAS command attaches the signature to a repository, referencing another artifact. The `--artifact-type` provides for differentiating artifacts, similar to file extensions that enable different file types. One or more files can be attached by specifying `file:mediaType`.
157
157
158
158
```bash
159
-
oras push $REGISTRY/$REPO \
160
-
--artifact-type 'signature/example' \
161
-
--subject $IMAGE \
162
-
./signature.json:application/json
159
+
oras attach $IMAGE \
160
+
./signature.json:application/json \
161
+
--artifact-type signature/example
163
162
```
164
163
165
-
For more information on oras push, see [ORAS documentation][oras-push-docs].
164
+
For more information on oras attach, see [ORAS documentation][oras-docs].
166
165
167
-
## Push a multi-file artifact as a reference
166
+
## Attach a multi-file artifact as a reference
168
167
169
-
Create some documentation around an artifact
168
+
Create some documentation around an artifact.
170
169
171
170
```bash
172
171
echo'Readme Content'> readme.md
173
172
echo'Detailed Content'> readme-details.md
174
173
```
175
174
176
-
Push the multi-file artifact as a reference
175
+
Attach the multi-file artifact as a reference.
177
176
178
177
```bash
179
-
oras push $REGISTRY/$REPO \
180
-
--artifact-type 'readme/example' \
181
-
--subject $IMAGE \
178
+
oras attach $IMAGE \
182
179
./readme.md:application/markdown \
183
180
./readme-details.md:application/markdown
181
+
--artifact-type readme/example
184
182
```
185
183
186
184
## Discovering artifact references
187
185
188
186
The ORAS Artifacts Specification defines a [referrers API][oras-artifacts-referrers] for discovering references to a `subject` artifact. The `oras discover` command can show the list of references to the container image.
189
187
190
-
Using `oras discover`, view the graph of artifacts now stored in the registry
188
+
Using `oras discover`, view the graph of artifacts now stored in the registry.
191
189
192
190
```bash
193
191
oras discover -o tree $IMAGE
194
192
```
195
193
196
-
The output shows the beginning of a graph of artifacts, where the signature and docs are viewed as children of the container image
194
+
The output shows the beginning of a graph of artifacts, where the signature and docs are viewed as children of the container image.
197
195
198
196
```output
199
197
myregistry.azurecr.io/net-monitor:v1
@@ -213,13 +211,12 @@ The ORAS Artifacts specification enables deep graphs, enabling signed software b
0 commit comments