Created
December 26, 2017 16:38
-
-
Save enocom/a1024bff4341d4fa852273050df4977c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function gcloud { | |
if ! docker inspect gcloud-config > /dev/null 2>&1; then | |
docker run -it --name gcloud-config -v "$PWD:/pwd" google/cloud-sdk:alpine gcloud auth login | |
fi | |
docker run -it --rm --volumes-from gcloud-config -v "$PWD:/pwd" google/cloud-sdk:alpine gcloud $@ | |
} | |
function aws { | |
if ! docker inspect aws-config > /dev/null 2>&1; then | |
docker run -it --name aws-config -v "$PWD:/pwd" mesosphere/aws-cli configure | |
fi | |
docker run -it --rm --volumes-from aws-config -v "$PWD:/pwd" mesosphere/aws-cli $@ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment