diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 5e4a6c5d6..000000000 --- a/Dockerfile +++ /dev/null @@ -1,2 +0,0 @@ -FROM alpine:latest -Run echo "prashant.arya" diff --git a/run_in_docker.sh b/run_in_docker.sh index c82faaa1f..ba95243bd 100755 --- a/run_in_docker.sh +++ b/run_in_docker.sh @@ -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 \