Skip to content

Commit

Permalink
fix: handle ancient empty docker layers
Browse files Browse the repository at this point in the history
Earlier versions of docker images had empty layers of 1024 zero-valued
octets.

Signed-off-by: Ramkumar Chinchani <[email protected]>
  • Loading branch information
rchincha committed Oct 4, 2023
1 parent d9f849b commit 15dbcab
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/docker-base.bats
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,13 @@ EOF
umoci unpack --image oci:layer1 dest
[ ! -f dest/rootfs/favicon.ico ]
}

@test "image with empty layer" {
cat > stacker.yaml <<EOF
image:
from:
type: docker
url: docker://grafana/grafana-oss:10.1.2-ubuntu
EOF
stacker build
}

0 comments on commit 15dbcab

Please sign in to comment.