hack: fix scripts for macos

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
docker-18.09
Tonis Tiigi 2017-12-28 00:17:42 -08:00
parent 949c06603f
commit 8c3e15beda
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
set -eu -o pipefail -x
iidfile=$(mktemp --tmpdir docker-iidfile.XXXXXXXXXX)
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
docker build --iidfile $iidfile -f ./hack/dockerfiles/lint.Dockerfile --force-rm .
iid=$(cat $iidfile)
docker run $iid gometalinter --config=gometalinter.json ./...

View File

@ -2,7 +2,7 @@
set -eu -o pipefail -x
iidfile=$(mktemp --tmpdir docker-iidfile.XXXXXXXXXX)
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
docker build --iidfile $iidfile --target integration-tests -f ./hack/dockerfiles/test.Dockerfile --force-rm .

View File

@ -2,7 +2,7 @@
set -eu -o pipefail -x
iidfile=$(mktemp --tmpdir docker-iidfile.XXXXXXXXXX)
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
docker build --build-arg VNDR_VERSION=48ac2669d9d1bcacd3163650ef911edca2ec3b42 --iidfile $iidfile -f ./hack/dockerfiles/vendor.Dockerfile --force-rm .
iid=$(cat $iidfile)
cid=$(docker create $iid noop)

View File

@ -2,7 +2,7 @@
set -eu -o pipefail -x
iidfile=$(mktemp --tmpdir docker-iidfile.XXXXXXXXXX)
iidfile=$(mktemp -t docker-iidfile.XXXXXXXXXX)
docker build --build-arg VNDR_VERSION=48ac2669d9d1bcacd3163650ef911edca2ec3b42 --iidfile $iidfile -f ./hack/dockerfiles/vendor.Dockerfile --force-rm .
iid=$(cat $iidfile)
diffs="$(docker run $iid git status --porcelain -- vendor 2>/dev/null)"