2017-05-25 23:26:11 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -eu -o pipefail -x
|
|
|
|
|
2017-12-28 08:17:42 +00:00
|
|
|
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
|
2017-12-20 07:22:19 +00:00
|
|
|
docker build --build-arg VNDR_VERSION=48ac2669d9d1bcacd3163650ef911edca2ec3b42 --iidfile $iidfile -f ./hack/dockerfiles/vendor.Dockerfile --force-rm .
|
|
|
|
iid=$(cat $iidfile)
|
|
|
|
cid=$(docker create $iid noop)
|
2017-06-02 17:27:14 +00:00
|
|
|
rm -rf ./vendor
|
2017-06-22 20:15:46 +00:00
|
|
|
docker cp $cid:/go/src/github.com/moby/buildkit/vendor .
|
2017-12-20 07:22:19 +00:00
|
|
|
docker rm $cid
|
|
|
|
rm -f $iidfile
|