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.
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
The script for the application is app.js
.
The changes to use io.js instead of the node.js were:
- To update the app.yaml file to use custom runtimes instead of the node.js runtime provided by Google.
- To modify the Dockerfile to ADD io.js and make it the entry point for the container.
Further info about custom runtimes.
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.