reseting docker file

This commit is contained in:
Prashant Arya 2019-12-19 03:11:52 +00:00
parent 857715012f
commit dfbdda0ddb
2 changed files with 8 additions and 6 deletions

View File

@ -1,2 +0,0 @@
FROM alpine:latest
Run echo "prashant.arya"

View File

@ -29,11 +29,15 @@ if [[ ! -z "$4" ]]; then
cache=$4
fi
if [[ ! -e $HOME/.config/gcloud/application_default_credentials.json ]]; then
echo "Application Default Credentials do not exist. Run [gcloud auth application-default login] to configure them"
exit 1
fi
docker run \
-v "$HOME"/.config/gcloud:/root/.config/gcloud \
-v "$context":/workspace \
docker.io/prary2/kaniko \
--dockerfile "${dockerfile}" --no-push --context dir:///workspace/ \
--cache="${cache}" --verbosity=debug
gcr.io/kaniko-project/executor:latest \
--dockerfile "${dockerfile}" --destination "${destination}" --context dir:///workspace/ \
--cache="${cache}"
#gcr.io/kaniko-project/executor:latest \