/GAE-iojs

Example of how to use iojs on GAE Managed VMs

Primary LanguageJavaScriptApache License 2.0Apache-2.0

GAE-iojs example

This is a sample Hello world app that runs with io.js on Google App Engine Managed VMs by using a custom runtime.

It's a unofficial modification of the Hello world app for node.js provided by Google in the official Google Cloud Platform repository.

Usage

Start by cloning this repository.

git clone https://github.com/mariocsgit/GAE-iojs.git

To run the app locally in the dev appserver:

gcloud preview app run app.yaml

To deploy the app in production:

gcloud --project YOUR-PROJECT-ID preview app deploy app.yaml --set-default

Application layout

The script for the application is app.js.

Modifications

The changes to use io.js instead of the node.js were:

  1. To update the app.yaml file to use custom runtimes instead of the node.js runtime provided by Google.
  2. To modify the Dockerfile to ADD io.js and make it the entry point for the container.

Documentation

Further info about custom runtimes.

Improvements

A way to update a ENV variable of the Dockerfile as a result of RUN would allow the Dockerfile to ADD the latest stable version of io.js.