From f80ea82a2cf62cc2b070d600e41325b9e0dea869 Mon Sep 17 00:00:00 2001 From: Deepesha Burse Date: Tue, 18 Jul 2023 21:37:11 +0530 Subject: [PATCH] update guide Signed-off-by: Deepesha Burse --- ...o_oci_images.mdx => distributing_oci_layouts.mdx} | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) rename docs/how_to_guides/{pushing_to_oci_images.mdx => distributing_oci_layouts.mdx} (87%) diff --git a/docs/how_to_guides/pushing_to_oci_images.mdx b/docs/how_to_guides/distributing_oci_layouts.mdx similarity index 87% rename from docs/how_to_guides/pushing_to_oci_images.mdx rename to docs/how_to_guides/distributing_oci_layouts.mdx index 8d8cf245..931086a0 100644 --- a/docs/how_to_guides/pushing_to_oci_images.mdx +++ b/docs/how_to_guides/distributing_oci_layouts.mdx @@ -1,9 +1,9 @@ --- -title: Distribute Images and Artifacts in an OCI Image Layout +title: Distributing OCI Layouts sidebar_position: 6 --- -# Distributing an artifact to OCI Image Layout +# Distributing OCI Layouts ### Phase 1: Creating an OCI Image @@ -16,9 +16,7 @@ FROM alpine CMD echo 'hello world!' ``` -FROM: This command initializes a new build stage and sets the Base Image for subsequent instructions. - -CMD: This command is used to specify what needs to be run after the image has been built. +Our image is based on alpine and runs the command `echo hello world!`. #### Step 1.2: Building the image using docker @@ -68,7 +66,7 @@ tar -xf ./hello-world.tar -C hello-world ### Phase 2: Push the OCI Image to a Repository -You may use [`oras copy`](../commands/oras_copy.mdx) to push the OCI Image on your local disk to a repository. +You may use [`oras copy`](../commands/oras_copy.mdx) to push the OCI Image from your local disk to a repository. In the following example, we are pushing the image to a remote repository like docker, @@ -85,7 +83,7 @@ Digest: sha256:3fd491e6dc3ce66cae989d23b3f3d5752314cd1793d0c580d3fd8bb280d07809 ### Phase 3: Pull the OCI Image from a Repository -You can simply pull the OCI image using the [`oras pull`](../commands/oras_pull.mdx) command. +You can pull the OCI image using the [`oras pull`](../commands/oras_pull.mdx) command. ``` oras pull docker.io/deepeshaburse/deepesha-test:v1