Skip to content

Commit

Permalink
adding oras manifest fetch to the docs "Pushing_and_pulling" (#241)
Browse files Browse the repository at this point in the history
* adding `oras manifest fetch` to the docs "Pushing_and_pulling"

Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com>

* similarly adding `oras manifest fetch` in manifest_annotations.mdx

Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com>

* changes suggested by sanjayantony

Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com>

* changes suggested by @Sanjayantony

Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com>

---------

Signed-off-by: Shubham Singh <116020663+1Shubham7@users.noreply.github.com>
  • Loading branch information
1Shubham7 authored Aug 7, 2023
1 parent a5f5815 commit 21c4086
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion docs/how_to_guides/manifest_annotations.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ In order to add annotations using the `annotations.json`, you may run the follow
oras push --annotation-file annotations.json localhost:5000/club:party cake.txt juice.txt
```

The push command would upload the blob and put a manifest. Running the following command to output the manifest:

```
oras manifest fetch localhost:5000/club:party --pretty
```

Expected Output:

```json
Expand Down Expand Up @@ -118,4 +124,4 @@ Expected Output:
"foo": "bar"
}
}
```
```
8 changes: 7 additions & 1 deletion docs/how_to_guides/pushing_and_pulling.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,13 @@ See [OCI Artifacts](https://github.com/opencontainers/image-spec/blob/main/manif
./docs/:application/vnd.acme.rocket.docs.layer.v1+tar
```

- The push would generate the following manifest:
- The push will generate a manifest. Run the following command to output the manifest:

```
oras manifest fetch localhost:5000/hello-artifact:v2 --pretty
```

Results in:

```json
{
Expand Down

0 comments on commit 21c4086

Please sign in to comment.