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)
|
2018-04-03 09:37:16 +00:00
|
|
|
docker build --build-arg VNDR_VERSION=15dc0965b7ba6dd78ae741e6fda33f23207033c4 --iidfile $iidfile -f ./hack/dockerfiles/vendor.Dockerfile --force-rm .
|
2017-12-20 07:22:19 +00:00
|
|
|
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
|