-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add skip/security option to update.sh #784
Conversation
@chorrell sadly an error occured when I tried to trigger a build :( |
What's wrong with nodejs-github-bot ? |
Maybe worth updating the contributing guide? |
@chorrell I don't think this will work for alpine like this |
I made some changes to the |
I'm going to do some more local testing of this over the week to ensure it can handle the various update scenarios |
Good call! I didn't think about the fact that the file gets overwritten right away! |
I think there's still some more work to do. Doing something like this resets the yarn version to 0.0.0:
|
Rewrite in node and use https://github.com/rcjsuen/dockerfile-ast? :D |
Maybe for the sake of simplicity, the first step of this function would be to extract the current Node version, Yarn version and Alpine version. Then depending on the setting, update it. It might be a bit of extra processing if want to do a full update but I think the script would be more readable and simpler to understand. What do you think? |
Extra processing is no issue - this is super quick anyways. The only thing taking time is the network calls figuring out latest version |
I pushed another change to better deal with the Yarn version |
@chorrell not required to land this but it might be nice to check on the flag early and if the slip flag is not defined, fetch the latest version of Yarn, then in the loop call the latest version if not skipping. This would avoid repeated HTTP requests |
I'll do a rebase to cleanup the commit history. |
rebase done |
I included some improvements to the usage instructions based on everyone's feedback |
Oh, I noticed the Travis-CI integration has changed. Is it not using |
Er, k, it's using both. What's going on? I prefer having this though :) https://github.com/nodejs/docker-node/runs/4204119 |
Can you rebase? |
done |
Does anyone understand why we have 3 builds? I kind of get the separated branch build, but why are there 2 PR builds? Is nodejs-github-bot redundant? Did a setting change somewhere? |
I disabled since we have |
Build passes https://travis-ci.org/nodejs/docker-node/builds/393736009 Can I merge? |
sure |
The disabled one might be related to nodejs/build#1353 |
This adds a new
-s
option argument (and usage) toupdate.sh
that allows you to skip updating the Yarn and Alpine versions when updating the images for a security release.I also updated the shebang to match the other scripts and to ensure you get a newer (i.e. homebrew installed) version of bash when on a mac.