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

Migrate nodesource to new repository #375

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion image/nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ source /pd_build/buildconfig
set -x

echo "+ Enabling Node Source APT repo"
curl -sL https://deb.nodesource.com/setup_18.x | bash -

Choose a reason for hiding this comment

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

no longer using the script, but still fetching from the same source. just more manually... hmm

NODE_MAJOR=18
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_MAJOR}.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list
apt-get update

## Install Node.js (also needed for Rails asset compilation)
Expand Down