mirror of
https://github.com/GoogleContainerTools/kaniko
synced 2026-10-08 00:51:44 +02:00
reseting docker file
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
FROM alpine:latest
|
||||
Run echo "prashant.arya"
|
||||
+8
-4
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user