Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Move NF-build node to later image and lock node 10 version. #418

Merged
merged 1 commit into from
May 18, 2020

Conversation

mheffner
Copy link
Contributor

Preparing for future netlify-build image changes.

@mheffner mheffner requested a review from a team as a code owner May 13, 2020 19:15
@mheffner mheffner added the type: feature code contributing to the implementation of a feature and/or user facing functionality label May 13, 2020
@vbrown608
Copy link
Contributor

Move NF-build node to later image

I don't see where we're installing the node version for Netlify Build now. According to netlify/build#1239 (comment) it looks like we want 12.16.*. Am I missing it?

@ehmicky
Copy link
Contributor

ehmicky commented May 13, 2020

I think it is installed in the buildbot Dockerfile.

@vbrown608
Copy link
Contributor

Oh, nice!

Copy link
Contributor

@vbrown608 vbrown608 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎨

@mheffner
Copy link
Contributor Author

Yeah, we're going to pull the NF node into a separate build image layer that we'll install the plugins in. Since we'll need to update that more rapidly, figured separating from the build-image would be better.

cd /

ENV ELM_VERSION=0.19.0-bugfix6
ENV YARN_VERSION=1.13.0

ENV NETLIFY_BUILD_NODE_VERSION="12.16.1"
ENV NETLIFY_NODE_VERSION="10.20.1"
Copy link
Contributor

@Benaiah Benaiah May 14, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this NETLIFY_NODE_VERSION and not NODE_VERSION?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No particular reason, more that it represents the version Netlify has chosen for the image. 🤷

Copy link
Contributor

@ehmicky ehmicky May 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that, as opposed to NETLIFY_NODE_VERSION, NODE_VERSION is the name of the environment variable used by users to specify a custom Node.js version. I am not sure whether that would be a good thing or not in this instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that shouldn't interfere. These ENV's are only present during the docker build phase.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, that makes sense.

@mheffner mheffner force-pushed the remove-netlify-build-node branch from 299ff6e to 621606e Compare May 18, 2020 13:27
@mheffner
Copy link
Contributor Author

This branch name is somewhat a misnomer now that #413 has been merged. This just locks the Node version and upgrades NVM version slightly.

@mheffner mheffner merged commit a0c7eb8 into xenial May 18, 2020
@mheffner mheffner deleted the remove-netlify-build-node branch May 18, 2020 20:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants