Y
Hacker News
new
|
ask
|
show
|
jobs
by
BinaryIdiot
3747 days ago
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?
1 comments
diggan
3747 days ago
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.
link
dlor
3747 days ago
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.
link
BinaryIdiot
3747 days ago
Fantastic, thanks!
link