Hacker News new | ask | show | jobs
by justinblat 3739 days ago
You can specify whatever version of Node.js you want to use in the engines section of your package.json:

https://cloud.google.com/nodejs/resources/runtime#engines

1 comments

Frustrating that it doesn't specify how it gets those versions. Is it always direct from the node folks so it's going to always have all versions or do they have their own cache?
Reading the source code of the docker container they use (https://github.com/GoogleCloudPlatform/nodejs-docker/blob/ma...) it seems like it's reading the available versions from an URL (http://storage.googleapis.com/gae_node_packages/node_version...) which points to some Google hosted storage. So I'm guessing they have some process to update this list after a new release and also caches the versions themselves.
Yep, we update the available versions constantly and just serve them from GCS to reduce download time.

I'll get this documented somewhere.

Disclosure: I work on GCP.

Fantastic, thanks!