Skip to content

Instantly share code, notes, and snippets.

@yurifrl
Last active November 13, 2018 20:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurifrl/e8012705f56a4c4fc16f44903d585f6d to your computer and use it in GitHub Desktop.
Save yurifrl/e8012705f56a4c4fc16f44903d585f6d to your computer and use it in GitHub Desktop.
gcloud cli
#!/usr/bin/env sh
docker run --rm \
-t $([[ -t 0 ]] && echo "-i") \
-w /workspace \
-v "$PWD:/workspace" \
-v /usr/bin/docker:/usr/bin/docker \
-v /var/run/docker.sock:/var/run/docker.sock \
-v kube-data:/root \
gcr.io/cloud-builders/gcloud "$@"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment