Created
June 12, 2017 19:52
-
-
Save euank/840e6605fe98bf59e10e92f161806994 to your computer and use it in GitHub Desktop.
Reproduce inconsistent sha output for docker2aci
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 characters
#!/bin/bash | |
set -euo pipefail | |
for i in $(seq 1 20); do | |
mkdir "fetch-$i" | |
pushd "fetch-$i" | |
../bin/docker2aci docker://euank/manylabels:busybox | |
sudo rkt fetch --insecure-options=image *.aci > sha | |
sudo rkt image cat-manifest $(cat sha) > rktmanifest | |
cat *.aci | gunzip | tar x | |
popd | |
done | |
cat "fetch-"*/sha | sort | uniq -c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment