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

Conversation

chilled-capybara
Copy link

I've knocked together an (untested) PR for #374 in the hope that it might be of use

The code is based on nodesource's migration guide; https://github.com/nodesource/distributions/wiki/How-to-migrate-to-the-new-repository

@CamJN
Copy link
Member

CamJN commented Aug 30, 2023

looks like github actions docker infra is currently mega broken, ping me again after a while so i remember to re-run the tests.

@chilled-capybara
Copy link
Author

Might be related to #372 / #371

@CamJN
Copy link
Member

CamJN commented Aug 30, 2023

That might be part of it but docker can't pull tonistiigi/binfmt and pulling from registry-1.docker.io is failing with status 503 Service Unavailable. So it won't work even with the baseimage migrated.

@@ -4,8 +4,13 @@ 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

image/nodejs.sh Outdated
mkdir -p /etc/apt/keyrings
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo 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" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo apt-get update
Copy link

Choose a reason for hiding this comment

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

sudo is not available/needed and can be removed in all of the above.

Copy link
Author

Choose a reason for hiding this comment

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

Removed in b37d17f

image/nodejs.sh Outdated
apt-get update
NODE_MAJOR=18
sudo apt-get update
sudo apt-get install -y ca-certificates curl gnupg
Copy link

Choose a reason for hiding this comment

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

ca-certiifaces and curl are already installed. gpg executable appears to be already available via the gpg package. Works for me without those two lines. Maybe they can be removed to simplify the script?

Copy link
Author

Choose a reason for hiding this comment

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

Removed in b37d17f

@CamJN
Copy link
Member

CamJN commented Oct 25, 2023

closing in favour of #376

@CamJN CamJN closed this Oct 25, 2023
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.

4 participants