get docker image down to 630mb
Some checks failed
CodeQL / Analyze (python) (push) Waiting to run
Build Debian package / build (push) Waiting to run
Deploy static content to Pages / deploy (push) Waiting to run
Build Homebrew package / build (push) Waiting to run
Build GitHub Pages website / build (push) Waiting to run
Build GitHub Pages website / deploy (push) Blocked by required conditions
Run linters / lint (push) Waiting to run
Build Pip package / build (push) Waiting to run
Run tests / python_tests (ubuntu-22.04, 3.11) (push) Waiting to run
Run tests / docker_tests (push) Waiting to run
Build Docker image / buildx (push) Has been cancelled

This commit is contained in:
Nick Sweeting 2024-12-18 05:03:52 -08:00
parent 54d4d7f640
commit 839016b4b1
No known key found for this signature in database
2 changed files with 19 additions and 18 deletions

View file

@ -35,13 +35,14 @@ cd blobs/sha256 || exit 1
for LAYERFILE in ./*; do
if [ -f "${LAYERFILE}" ]; then
mv "${LAYERFILE}" "${LAYERFILE}.tar"
tar -xzf "${LAYERFILE}.tar"
mkdir -p "${LAYERFILE}"
tar -xzf "${LAYERFILE}.tar" -C "${LAYERFILE}"
rm "${LAYERFILE}.tar"
echo "-----------------------------------------------------------------"
echo "Contents of layer: ${LAYERFILE%/}"
echo "-----------------------------------------------------------------"
# List the files in the layer.tar without extracting
tree -L 2
tree -L 2 "${LAYERFILE}"
echo
fi
done