Uh oh!
There was an error while loading. Please reload this page.
Add skip/security option to update.sh - #784
Conversation
nodejs-github-bot
commented
Jun 13, 2018
@chorrell sadly an error occured when I tried to trigger a build :( |
chorrell
commented
Jun 13, 2018
What's wrong with nodejs-github-bot ? |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
SimenB
commented
Jun 13, 2018
Maybe worth updating the contributing guide? |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
LaurentGoderre
commented
Jun 13, 2018
@chorrell I don't think this will work for alpine like this |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chorrell
commented
Jun 13, 2018
I made some changes to the |
chorrell
commented
Jun 13, 2018
I'm going to do some more local testing of this over the week to ensure it can handle the various update scenarios |
LaurentGoderre
commented
Jun 13, 2018
Good call! I didn't think about the fact that the file gets overwritten right away! |
chorrell
commented
Jun 13, 2018
I think there's still some more work to do. Doing something like this resets the yarn version to 0.0.0: |
SimenB
commented
Jun 13, 2018
Rewrite in node and use https://github.com/rcjsuen/dockerfile-ast? :D |
LaurentGoderre
commented
Jun 13, 2018
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? |
SimenB
commented
Jun 13, 2018
Extra processing is no issue - this is super quick anyways. The only thing taking time is the network calls figuring out latest version |
chorrell
commented
Jun 13, 2018
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 |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chorrell
commented
Jun 14, 2018
I'll do a rebase to cleanup the commit history. |
chorrell
commented
Jun 16, 2018
rebase done |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chorrell
commented
Jun 18, 2018
I included some improvements to the usage instructions based on everyone's feedback |
chorrell
commented
Jun 18, 2018
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 :) |
LaurentGoderre
commented
Jun 18, 2018
LaurentGoderre
commented
Jun 18, 2018
Can you rebase? |
chorrell
commented
Jun 18, 2018
done |
chorrell
commented
Jun 18, 2018
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? |
chorrell
commented
Jun 18, 2018
chorrell
commented
Jun 18, 2018
I disabled since we have |
LaurentGoderre
commented
Jun 18, 2018
Build passes https://travis-ci.org/nodejs/docker-node/builds/393736009 Can I merge? |
chorrell
commented
Jun 18, 2018
sure |
nschonni
commented
Jun 18, 2018
The disabled one might be related to nodejs/build#1353 |

This adds a new
-soption argument (and usage) toupdate.shthat 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.