Skip to content
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

feat(superchain): install both Node 10 and Node 14 #2718

Merged
merged 4 commits into from
Mar 19, 2021

Conversation

rix0rrr
Copy link
Contributor

@rix0rrr rix0rrr commented Mar 17, 2021

We want to switch to Node 14 for CDK v2, and so we need Node 14 be
present in the Superchain image.

At the same time, we want to continue testing v1 against Node 10, so
we ALSO need Node 10 present in the image.

Use NVM to install both versions in parallel and providing a command
to switch between the two.

Node 10 is the default, build scripts can switch to Node14 by doing
either:

$ nvm use 14
$ nvm exec 14 <command>

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

We want to switch to Node 14 for CDK v2, and so we need Node 14 be
present in the Superchain image.

At the same time, we want to continue testing v1 against Node 10, so
we ALSO need Node 10 present in the image.

Use NVM to install both versions in parallel and providing a command
to switch between the two.

Node 10 is the default, build scripts can switch to Node14 by doing
either:

```
$ nvm use 14
$ nvm exec 14 <command>
```
@rix0rrr rix0rrr requested a review from a team March 17, 2021 15:46
@rix0rrr rix0rrr self-assigned this Mar 17, 2021
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Mar 17, 2021
@rix0rrr rix0rrr added pr/do-not-merge This PR should not be merged at this time. and removed pr/do-not-merge This PR should not be merged at this time. labels Mar 18, 2021
@mergify
Copy link
Contributor

mergify bot commented Mar 19, 2021

Thank you for contributing! ❤️ I will now look into making sure the PR is up-to-date, then proceed to try and merge it!

@mergify mergify bot added the pr/ready-to-merge This PR is ready to be merged. label Mar 19, 2021
@mergify
Copy link
Contributor

mergify bot commented Mar 19, 2021

Merging (with squash)...

@mergify mergify bot merged commit 3ca97d9 into main Mar 19, 2021
@mergify mergify bot deleted the huijbers/superchain-multiple-nodes branch March 19, 2021 09:02
@mergify
Copy link
Contributor

mergify bot commented Mar 19, 2021

Merging (with squash)...

@mergify mergify bot removed the pr/ready-to-merge This PR is ready to be merged. label Mar 19, 2021
RomainMuller added a commit that referenced this pull request Mar 23, 2021
Includes the following:
- Revert "fix(superchain): use entrypoint to set up nvm (#2736)"
  - This reverts commit 0e247b6.
- Revert "feat(superchain): `$NVM_USE_VERSION` selects Node.js version (#2726)"
  - This reverts commit fb9abf9.
- Revert "feat(superchain): install both Node 10 and Node 14 (#2718)"
  - This reverts commit 3ca97d9.
RomainMuller added a commit that referenced this pull request Mar 23, 2021
…2737)

Includes the following:
- Revert "fix(superchain): use entrypoint to set up nvm (#2736)"
  - This reverts commit 0e247b6.
- Revert "feat(superchain): `$NVM_USE_VERSION` selects Node.js version (#2726)"
  - This reverts commit fb9abf9.
- Revert "feat(superchain): install both Node 10 and Node 14 (#2718)"
  - This reverts commit 3ca97d9.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants