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

Update nodejs installation script in kitchen sink #247

Merged
merged 2 commits into from
Aug 9, 2024
Merged

Conversation

julienp
Copy link
Contributor

@julienp julienp commented Aug 8, 2024

After the update to Debian 12, corepack was not installed anymore in the kitchen sink image. This is due to the installation method for the nodesource Debian repo having changed.

Update the installation method used for nodejs, and add tests to ensure corepack is present.

Fixes #246

@julienp julienp requested a review from a team as a code owner August 8, 2024 13:34
rm -rf /var/lib/apt/lists/*

# Install nodejs and associated tools
RUN \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This bit is new. I split the above RUN step into multiple steps to keep the steps for various tools grouped together, instead of bundled too much in a single step.

nodejs \
npm \
Copy link
Contributor

Choose a reason for hiding this comment

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

Is npm now installed as part of nodejs?

curl -fsSL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - && \
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list && \
# Add nodejs repo
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
Copy link
Contributor

Choose a reason for hiding this comment

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

So this vs. https://deb.nodesource.com/node_18.x has changed, and I guess this bundles everything when installing nodejs? That answers my other question about npm as well I guess?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct!

@julienp julienp merged commit e5193d4 into main Aug 9, 2024
28 checks passed
@julienp julienp deleted the julienp/corepack branch August 9, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pulumi/pulumi image does not provide corepack anymore
2 participants