This repository has been archived by the owner on Mar 18, 2024. It is now read-only.
feat: use node 18 LTS instead of the latest 20.x version #1421
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary generated by Reviewpad on 11 Oct 23 01:54 UTC
This pull request includes two patches:
The first patch updates the Dockerfile for the sfpowerscripts image to use Node.js 18 LTS instead of version 20.x.
The second patch modifies the Dockerfile to remove the yarn/sf cache in order to reduce the image size.
Overall, these changes aim to improve the Docker image for the sfpowerscripts build system in the Salesforce environment.
Checklist
All items have to be completed before a PR is merged
Rationale
We are not dependent on bleeding edge features from nodejs and a few occasional errors have been reported with the image using v20.x. Therefore, it makes sense to use the LTS version of nodejs for our image.
Image size reduction
@ethan-sargent analyzed the behaviour of
sf plugins install
and discovered that sf was using a specific cache for yarn. The second commit empties this cache after installing the extra plugins as it is not needed. This change saves ~1.4Gb in the image.