Git Product home page Git Product logo

compute-appengine-demo-suite-python's Introduction

Google Compute Engine demo suite

About

The Compute Engine demo suite contains a variety of demos showing how to use Google Compute Engine. The demos are available live at http://gce-demos.appspot.com.

If you would like to run the application locally, follow the setup instructions.

Setup Instructions

  1. Update the application value in the root app.yaml file to your own App Engine app identity.

    application: your-app-id

    More information about the app.yaml file can be found in the App Engine documentation.

  2. Add a client_secrets.json file within the lib/gc_appengine directory with your client id and secrets, as found in the API console. The file should look something like this:

    {
      "web": {
        "client_id": "24043....apps.googleusercontent.com",
        "client_secret": "iPVXC5...xVz",
        "redirect_uris": ["http://localhost:8080/oauth2callback",
                          "http://.appspot.com/oauth2callback"],
        "auth_uri": "https://accounts.google.com/o/oauth2/auth",
        "token_uri": "https://accounts.google.com/o/oauth2/token"
      }
    }

    Also make sure that the redirect URIs are correctly associated with the client id and secret in the API console.

    More information about client secrets can be found in the API client library documentation.

  3. The Fractal demo requires addition of a Service email account to your project team members. The Service email account is of the format

    [email protected]

    Add this to your list of team members in the API console under the Team section.

    More information about Service accounts can be found in the API client library documentation.

  4. Update the DEFAULT_PROJECT_ID in lib/gc_appengine/gce_appengine.py with your own project id:

    DEFAULT_PROJECT_ID = "your-project-id"

    Information on how to get your Compute Engine project ID can be found in the Compute Engine documentation.

  5. (optional) You can optionally create custom images for the Fractal and Image Magick demos that will allow the instances to start quicker. First, start the instances using the demo UI. When at least one of the instances is up and running, ssh into that instance and follow the directions here for creating an image for an instance.

    Name the images 'fractal-demo-image' and 'image-magick-demo-image' respectively.

  6. Install dependencies listed in the dependencies section.

Dependencies

Add to /lib directory

compute-appengine-demo-suite-python's People

Contributors

brisbink avatar

Watchers

 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.