This project is no longer actively developed or maintained.
For more information about App Engine, refer to our documentation.
If you haven't already, make sure you are familiar with Custom Runtimes in the App Engine Managed VM documentation.
You must also install Docker on your workstation, as the SDK uses it to build, test and deploy your application.
What's in this Repository?
This is a minimal Managed VM runtime that runs the nginx server. It
implements the two required handlers (
static pages and illustrates the files necessary to run a custom runtime.
app.yaml- Configuration file for App Engine.
Dockerfile- Defines your docker image.
www/index.html- Root page to be served by nginx.
nginx.conf- nginx configuration file.
ok- File content served by start and health handlers.
First, make sure Docker has been started on your workstation. Refer to the Managed VM documentation for more information on how to do this for your environment.
Then, to run locally:
$ gcloud preview app run /path/to/appengine-nginx-hello
This will build the nginx docker image and run it locally. You can access it at http://localhost:8080.
Deploying your Application
To deploy to App Engine:
$ gcloud preview app deploy /path/to/appengine-nginx-hello
This will build the nginx docker image and deploy it to App Engine.
Serving Static Files
You can use this demo to serve static files from a managed vm. Just add files
to the www directory and they'll be added to the
directory and served from your app.
Copyright 2014 Google Inc.