This commit is contained in:
ClementTsang
2022-06-02 01:00:08 -04:00
parent ec98bf9ab1
commit cefca971df
4 changed files with 84 additions and 1 deletions

6
check.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/bin/bash
BASE_LAYERS="$(skopeo inspect $1 | jq '.Layers')"
DERIVED_LAYERS="$(skopeo inspect $2 | jq '.Layers')"
jq '.base - .derived | .!=[]' <<< "{\"base\": $BASE_LAYERS, \"derived\": $DERIVED_LAYERS}"