GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zenlambda/gae-compute-launcher: Demonstation of how to launch Docker containers from App Engine using Compute Engine

BranchesTags
Open more actions menu

Latest commit

 

History

6 Commits
6 Commits

Folders and files

NameName
Last commit message
Last commit date
image
image
 
 
templates
templates
 
 
.gitignore
.gitignore
 
 
.sublimelinterrc
.sublimelinterrc
 
 
LICENSE.txt
LICENSE.txt
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
app.yaml
app.yaml
 
 
appengine_config.py
appengine_config.py
 
 
basehandler.py
basehandler.py
 
 
cron.yaml
cron.yaml
 
 
main.py
main.py
 
 
pylintrc
pylintrc
 
 
requirements.txt
requirements.txt
 
 
setup.cfg
setup.cfg
 
 

Repository files navigation

Google App Engine Compute Launcher

A demonstration of how to launch docker based tasks on Google Compute Engine using Google App Engine. Further explanation can be found on the author's blog post.

Prerequisites

  • Install Google Cloud SDK.

  • Signup for Google Cloud Platform and get a Project Id.

  • Turn on billing (required for launching compute instances).

Deploying the Docker Image

You will need to deploy the docker image in order the task to be runnable on compute engine. To do this run the following:

make image

Running on DevAppServer

Run the following:

make dev

Or if you wish to run dev_appserver.py directly

make secrets
dev_appserver -A your-project-id app.yaml

You must specify your cloud project in your-project-id if you actually want to launch instances on google cloud from dev_appserver.py.

Now navigate to the page http://localhost:8080/launcher

Running on AppEngine

Ensure you have setup gcloud CLI to point to the right application id:

gcloud config set project your-project-id

First you have to create a cookie secret and store in your appengine project metadata. We will do this by setting 'cookie_secret' as a metadata attribute of the current google cloud project. You can do this by running:

make cloud_secrets

Now you can deploy the app:

make deploy

Now navigate to http://your-project-id.appspot.com/launcher.

License and Disclaimer

This is an example provided 'as-is' without any warranty see LICENSE.txt for details.

About

Demonstation of how to launch Docker containers from App Engine using Compute Engine

www.zenlambda.com/blog/cost-efficient-scheduled-batch-tasks-google-cloud/

Topics

appenginebatch-processingblogcompute-enginedockergoogle-cloudscheduled-taskssecret-management

Resources

Readme
ISC license
Activity

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.