Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Forked from scottrigby/zot-kind-helm-skopeo.md
Created December 6, 2022 09:39

Revisions

  1. @scottrigby scottrigby renamed this gist Dec 5, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. @scottrigby scottrigby revised this gist Dec 5, 2022. No changes.
  3. @scottrigby scottrigby revised this gist Dec 5, 2022. No changes.
  4. @scottrigby scottrigby revised this gist Dec 5, 2022. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions zot.md
    Original file line number Diff line number Diff line change
    @@ -13,20 +13,20 @@
    1. port-forward service for ease

    ```console
    $ kubectl port-forward svc/zot 50000:5000
    $ kubectl port-forward svc/zot 5000:5000
    ```

    1. Test pushing a bare helm chart to zot

    ```console
    $ helm create foo && helm package foo
    $ helm push foo-0.1.0.tgz oci://127.0.0.1:50000
    $ helm push foo-0.1.0.tgz oci://127.0.0.1:5000
    ```

    1. inspect OCI package with Skopeo

    ```console
    $ skopeo inspect --raw --tls-verify=false docker://127.0.0.1:50000/foo:0.1.0 | jq
    ```json
    $ skopeo inspect --raw --tls-verify=false docker://127.0.0.1:5000/foo:0.1.0 | jq
    {
    "schemaVersion": 2,
    "config": {
  5. @scottrigby scottrigby revised this gist Dec 5, 2022. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions zot.md
    Original file line number Diff line number Diff line change
    @@ -23,7 +23,7 @@
    $ helm push foo-0.1.0.tgz oci://127.0.0.1:50000
    ```

    1. Inspect OCI package with Skopeo
    1. inspect OCI package with Skopeo

    ```console
    $ skopeo inspect --raw --tls-verify=false docker://127.0.0.1:50000/foo:0.1.0 | jq
    @@ -44,7 +44,7 @@
    }
    ```

    1. Cleanup
    1. cleanup


    ```console
  6. @scottrigby scottrigby renamed this gist Dec 5, 2022. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  7. @scottrigby scottrigby created this gist Dec 5, 2022.
    52 changes: 52 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,52 @@
    1. setup

    ```console
    $ kind create cluster
    ```

    1. install zot with minimal image for security-minded dist-spec-only

    ```console
    $ helm upgrade zot zot/zot --set image.repository=ghcr.io/project-zot/zot-minimal-linux-amd64
    ```

    1. port-forward service for ease

    ```console
    $ kubectl port-forward svc/zot 50000:5000
    ```

    1. Test pushing a bare helm chart to zot

    ```console
    $ helm create foo && helm package foo
    $ helm push foo-0.1.0.tgz oci://127.0.0.1:50000
    ```

    1. Inspect OCI package with Skopeo

    ```console
    $ skopeo inspect --raw --tls-verify=false docker://127.0.0.1:50000/foo:0.1.0 | jq
    {
    "schemaVersion": 2,
    "config": {
    "mediaType": "application/vnd.cncf.helm.config.v1+json",
    "digest": "sha256:af9c03c64b1d3d1c76a09d75faf3fd1c8b9ccc97ce0d31e464bccf68fe236674",
    "size": 137
    },
    "layers": [
    {
    "mediaType": "application/vnd.cncf.helm.chart.content.v1.tar+gzip",
    "digest": "sha256:dce0001b81ca61d8710bce34361bdfc05748459adf008a101126508fb7e05309",
    "size": 3750
    }
    ]
    }
    ```

    1. Cleanup


    ```console
    $ kind delete cluster
    ```