Git Product home page Git Product logo

cloud-sdk-docker's Introduction

cloud-sdk-docker

** >>>> NOTE <<<< **

The base soruce image for the Cloud SDK Container will be rebased to Alpine Linux on or after 5/15/17. For more information, please see:


google/cloud-sdk is a Docker image bundling all the components and dependencies of the Google Cloud SDK including alpha and beta components.

Usage

Follow these instructions if you are running docker outside of Google Compute Engine:

# Get the cloud sdk image:
$ docker pull google/cloud-sdk

# Auth & save the credentials in gcloud-config volumes:
$ docker run -t -i --name gcloud-config google/cloud-sdk gcloud init

# If you would like to use service account instead please look here:
$ docker run -t -i --name gcloud-config google/cloud-sdk gcloud auth activate-service-account <your-service-account-email> --key-file /tmp/your-key.p12 --project <your-project-id>

# Re-use the credentials from gcloud-config volumes & run sdk commands:
$ docker run --rm -ti --volumes-from gcloud-config google/cloud-sdk gcloud info
$ docker run --rm -ti --volumes-from gcloud-config google/cloud-sdk gcloud components list
$ docker run --rm -ti --volumes-from gcloud-config google/cloud-sdk gcutil listinstances
$ docker run --rm -ti --volumes-from gcloud-config google/cloud-sdk gsutil ls

If you are using this image from within Google Compute Engine. If you enable a Service Account with the necessary scopes, there is no need to auth or use a config volume:

# Get the cloud sdk image:
$ docker pull google/cloud-sdk

# Just start using the sdk commands:
$ docker run --rm -ti google/cloud-sdk gcloud info
$ docker run --rm -ti google/cloud-sdk gcloud components list
$ docker run --rm -ti google/cloud-sdk gcutil listinstances
$ docker run --rm -ti google/cloud-sdk gsutil ls

cloud-sdk-docker's People

Contributors

proppy avatar erjohnso avatar jacek-marchwicki avatar skelterjohn avatar tswast avatar mattmoor avatar dlorenc avatar svalentin avatar ckeeney avatar dgageot avatar jmbataller avatar ludoch avatar seano314 avatar salrashid123 avatar timkaye11 avatar

Stargazers

jrccrj avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.