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-06-06 08:02:01 +00:00
|
|
|
docker build --build-arg VNDR_VERSION=1fc68ee0c852556a9ed53cbde16247033f104111 --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
|