Skip to content

Instantly share code, notes, and snippets.

@euank
Created June 12, 2017 19:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save euank/840e6605fe98bf59e10e92f161806994 to your computer and use it in GitHub Desktop.
Save euank/840e6605fe98bf59e10e92f161806994 to your computer and use it in GitHub Desktop.
Reproduce inconsistent sha output for docker2aci
#!/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