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-oci-artifacts.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,10 @@ To demonstrate this capability, this article shows how to use the [OCI Registry
16
16
17
17
## Prerequisites
18
18
19
-
***Azure container registry** - Create a container registry in your Azure subscription. For example, use the [Azure portal](container-registry-get-started-portal.md) or the [Azure CLI][az-acr-create].
20
-
***Azure CLI** - Version `2.29.1` or later is recommended. Run `az --version `to find the required. If you need to install or upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli).
21
-
***ORAS CLI** - Download and install the ORAS CLI `v0.16.0` for your operating system from the [ORAS installation guide](https://oras.land/cli/).
22
-
***Docker** - ORAS optionally leverages the Docker desktop credential store for authentication.
23
-
If Docker Desktop is installed, it must be running.
24
-
You can use [Docker installed locally][docker-install] to build and push a container image, reference an existing container image or use [ACR Build][az-acr-build] to build remotely, in Azure.
19
+
***Azure container registry** - Create a container registry in your Azure subscription. For example, use the [Azure portal](container-registry-get-started-portal.md) or [az acr create][az-acr-create].
20
+
***Azure CLI** - Version `2.29.1` or later is required. See [Install Azure CLI](/cli/azure/install-azure-cli) for installation and/or upgrade.
21
+
***ORAS CLI** - Version `v0.16.0` is required. See: [ORAS installation][oras-install-docs].
22
+
***Docker (Optional)** - While Docker Desktop is not required, the `oras` cli utilizes the Docker desktop credential store for storing credentials. If Docker Desktop is installed, it must be running for `oras login`.
25
23
26
24
## Configure a registry
27
25
@@ -206,12 +204,10 @@ tree ./download
206
204
207
205
## Remove the artifact (optional)
208
206
209
-
To remove the artifact from your Azure container registry, use the [az acr repository delete][az-acr-repository-delete] command. The following example removes the artifact you stored there:
207
+
To remove the artifact from your registry, use the `oras manifest delete` command.
# Push and pull supply chain artifacts using Azure Registry (Preview)
13
13
14
-
Use an Azure container registry to store and manage a graph of supply chain artifacts, including signatures, software bill of materials (SBoM), security scan results or other types.
14
+
Use an Azure container registry to store and manage a graph of supply chain artifacts, including signatures, software bill of materials (SBOM), security scan results and other types.
15
15
16
16

17
17
18
18
To demonstrate this capability, this article shows how to use the [OCI Registry as Storage (ORAS)](https://oras.land) CLI to `push`, `discover` and `pull` a graph of supply chain artifacts to an Azure container registry.
19
+
Storing individual (root) OCI Artifacts are covered in [Push and pull OCI artifacts](container-registry-oci-artifacts.md).
19
20
20
-
Storing individual (root) OCI Artifacts are covered in [Push and pull OCI artifact](container-registry-oci-artifacts.md).
21
21
To store a graph of artifacts, a reference to a `subject` artifact is defined using the [OCI Artifact Manifest][oci-artifact-manifest], which is part of the [pre-release OCI 1.1 Distribution specification][oci-1_1-spec].
22
-
OCI 1.1 Artifact Manifest support is a preview feature and subject to [limitations](#preview-limitations).
22
+
OCI 1.1 Artifact Manifest support is an ACR preview feature and subject to [limitations](#preview-limitations).
23
23
24
24
## Prerequisites
25
25
26
-
***Azure container registry** - Create a container registry in your Azure subscription. For example, use the [Azure portal](container-registry-get-started-portal.md) or the [Azure CLI][az-acr-create].
27
-
***Azure CLI** - Version `2.29.1` or later is recommended. Run `az --version `to find the required. If you need to install or upgrade, see [Install Azure CLI](/cli/azure/install-azure-cli).
28
-
***ORAS CLI** - Download and install the ORAS CLI `v0.16.0` for your operating system from the [ORAS installation guide][oras-install-docs].
29
-
***Docker** - ORAS optionally leverages the Docker desktop credential store for authentication.
30
-
If Docker Desktop is installed, it must be running.
31
-
To complete the walkthrough, a container image is referenced.
32
-
You can use [Docker installed locally][docker-install] to build and push a container image, reference an existing container image or use [ACR Build][az-acr-build] to build remotely, in Azure.
33
-
You can use [Docker installed locally][docker-install] to build and push a container image, reference an existing container image or use [ACR Build][az-acr-build] to build remotely, in Azure.
26
+
***Azure container registry** - Create a container registry in your Azure subscription. For example, use the [Azure portal](container-registry-get-started-portal.md) or the [Azure CLI][az-acr-create].
27
+
*See [Preview limitations](#preview-limitations) for Azure cloud support.*
28
+
***Azure CLI** - Version `2.29.1` or later is required. See [Install Azure CLI](/cli/azure/install-azure-cli) for installation and/or upgrade.
29
+
***ORAS CLI** - Version `v0.16.0` is required. See: [ORAS installation][oras-install-docs].
30
+
***Docker (Optional)** - To complete the walkthrough, a container image is referenced.
31
+
You can use [Docker installed locally][docker-install] to build and push a container image, or use [`acr build`][az-acr-build] to build remotely in Azure.
32
+
While Docker Desktop is not required, the `oras` cli utilizes the Docker desktop credential store for storing credentials. If Docker Desktop is installed, it must be running for `oras login`.
### Attach a sample SBoM to the image in the registry
155
+
### Attach a sample SBOM to the image in the registry
157
156
158
157
```bash
159
158
oras attach $IMAGE \
160
-
./sbom.json:application/json \
161
-
--artifact-type sbom/example
159
+
./SBOM.json:application/json \
160
+
--artifact-type SBOM/example
162
161
```
163
162
164
-
### Sign the SBoM
163
+
### Sign the SBOM
165
164
166
165
Artifacts that are pushed as references, typically don't have tags as they're considered part of the subject artifact. To push a signature to an artifact that is a child of another artifact, use the `oras discover` with `--artifact-type` filtering to find the digest.
The OCI Artifact Manifest enables artifact graphs to be pushed, discovered, pulled and copied without having to assign tags. Artifact manifests enables a tag listing to focus on the artifacts users think about, as opposed to the signatures and SBoMs that are associated with the container images, helm charts and other artifacts.
257
+
The OCI Artifact Manifest enables artifact graphs to be pushed, discovered, pulled and copied without having to assign tags. Artifact manifests enables a tag listing to focus on the artifacts users think about, as opposed to the signatures and SBOMs that are associated with the container images, helm charts and other artifacts.
259
258
260
259
### View a list of tags
261
260
@@ -321,7 +320,7 @@ The signature is untagged, but tracked as a `oras.artifact.manifest` reference t
321
320
322
321
## Delete all artifacts in the graph
323
322
324
-
Support for the OCI v1.1 Specification enables deleting the graph of artifacts associated with the root artifact. Use the [az acr repository delete][az-acr-repository-delete] command to delete the signature, SBoM and the signature of the SBoM.
323
+
Support for the OCI v1.1 Specification enables deleting the graph of artifacts associated with the root artifact. Use the [az acr repository delete][az-acr-repository-delete] command to delete the signature, SBOM and the signature of the SBOM.
325
324
326
325
```azurecli
327
326
az acr repository delete \
@@ -361,3 +360,4 @@ az acr manifest list-metadata \
0 commit comments