-
Notifications
You must be signed in to change notification settings - Fork 588
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Promote official node
images for yarn
and npm
users
#322
Comments
I think this is a good idea! It should make it easier to untangle Personally, I would be very happy if this somehow meant that popular node images were immediately available as base images when doing Docker builds! I.e. that the |
This change wouldn't cache popular node packages, just the layers of the official node image, sorry. |
I don't expect node packages to be cached! But I've noticed that when we use the Bottom line, I think it would be a good idea to do this for |
Oh sorry I misunderstood your comment. Yeah, caching |
I would rather support the yarn and npm cloud builders here. I'm happy to do it. The reason is that the interface should be the same. The node endpoints not setting the entrypoint to npm means it's a node cloud builder not a npm/yarn one. Back to the purpose of cloud builders which is a single-purpose command. So I'm in favor of them staying here and being maintained. |
Using the official node means npx would also be supported |
SGTM, especially provided:
|
Caching is an implementation details of the hosted service -- but to be clear, the expected result of this deprecation is that users of the hosted service will not experience any significant changes in build times or startup latencies. |
SGTM, especially provided:
|
node
images for yarn
and npm
users
I would like to propose that we deprecate and stop building the
npm
andyarn
builders, and instead recommend that users use the officialnode
image from Dockerhub.This image gets regular updates from the official Node maintainers, and new versions of node are immediately available as builder images.
The only downside (AFAIK) is that the images don't specify an entrypoint, so instead of:
users would have to write:
However, the
node
image includes bothyarn
andnpm
, and is updated and tagged with the version of node, so it's easy to specify in your build:I propose we recommend that users should use the official node image, include a deprecation warning in
gcr.io/cloud-builders/npm
and/yarn
, and eventually break those images to force stragglers to use the official node image.We would cache popular versions of the
node
builder on worker VMs, just as we do fornpm
andyarn
builders today.@palmerj3 @victorandree As recent contributors to the npm and yarn builders, I'm especially interested in your feedback.
P.S., if this work proves successful, we could possibly also migrate users of
dotnet
,mvn
,gradle
, etc., to official images which receive updates more quickly.The text was updated successfully, but these errors were encountered: