Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
rchincha committed Nov 2, 2023
1 parent 74c7923 commit e4be78b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/gzip.bats
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,23 @@ function teardown() {
truncate -s 512k folder1/file1
tar cvf test.tar folder1
cat > stacker.yaml <<EOF
first:
tar:
from:
type: tar
url: test.tar
EOF
stacker build
cat oci/index.json | jq .
m1=$(cat oci/index.json | jq .manifests[0].digest | sed 's/sha256://' | tr -d \")
cat oci/blobs/sha256/"$m1" | jq .
l1=$(cat oci/blobs/sha256/"$m1" | jq .layers[0].digest | sed 's/sha256://' | tr -d \")
skopeo copy --format=oci oci:oci:first containers-storage:test:tar
skopeo copy --format=oci containers-storage:test:tar oci:oci:tar
skopeo --version
skopeo copy --format=oci oci:oci:tar containers-storage:test:tar
skopeo copy --format=oci containers-storage:test:tar oci:test:tar
cat oci/index.json | jq .
m2=$(cat oci/index.json | jq .manifests[1].digest | sed 's/sha256://' | tr -d \")
cat oci/blobs/sha256/"$m2" | jq .
l2=$(cat oci/blobs/sha256/"$m2" | jq .layers[0].digest | sed 's/sha256://' | tr -d \")
cat oci/index.json | jq .
echo "$l1"
echo "$l2"
[ "$l1" = "$l2" ]
Expand Down

0 comments on commit e4be78b

Please sign in to comment.