Forked from scottrigby/zot-kind-helm-skopeo.md
Created
December 6, 2022 09:39
Revisions
-
scottrigby renamed this gist
Dec 5, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
scottrigby revised this gist
Dec 5, 2022 . No changes.There are no files selected for viewing
-
scottrigby revised this gist
Dec 5, 2022 . No changes.There are no files selected for viewing
-
scottrigby revised this gist
Dec 5, 2022 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 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:5000 ``` 1. inspect OCI package with Skopeo ```json $ skopeo inspect --raw --tls-verify=false docker://127.0.0.1:5000/foo:0.1.0 | jq { "schemaVersion": 2, "config": { -
scottrigby revised this gist
Dec 5, 2022 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ```console $ skopeo inspect --raw --tls-verify=false docker://127.0.0.1:50000/foo:0.1.0 | jq @@ -44,7 +44,7 @@ } ``` 1. cleanup ```console -
scottrigby renamed this gist
Dec 5, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
scottrigby created this gist
Dec 5, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal 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 ```