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

Node repository and install script fails on Centos:latest docker container #456

Closed
robert-marriott opened this issue Apr 28, 2017 · 3 comments

Comments

@robert-marriott
Copy link

robert-marriott commented Apr 28, 2017

The script runs and decides that centos 7:latest image is incompatible. Both Node 6.x and 7.x scripts have the same result:

Your distribution, identified as "centos-release-7-3.1611.el7.centos.x86_64", is not currently supported

@chrislea
Copy link
Contributor

Can you please provide the full output of the setup script? Ideally, please download it and run it locally with the -x flag ie:

curl -sL https://rpm.nodesource.com/setup_7.x
chmod 755 setup_7.x
sudo ./setup_7.x -x

Those setup scripts were written assuming they'd be run on "normal" servers, so I'm not sure if being inside a Docker container will cause issues.

@robert-marriott
Copy link
Author

Hi, I believe I have identified the issue. I was attempting to install node into the CentOS container behind a corporate network. When using a nonproxied network the script completed without any issues for both Node 6 and 7.

I am unsure why it decided that the "unsupported distribution" shell message was the one to arrive on. Perhaps the environment variables from behind the proxy didn't resolve in the appropriate way.

@chrislea
Copy link
Contributor

Ah, yes, the proxy thing is a known issue. The TLDR is to do:

curl -sL https://rpm.nodesource.com/setup_7.x | sudo -E bash -

The -E makes sudo preserve the environment which gets around the proxy issues.

Glad you got it sorted out either way.

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

No branches or pull requests

2 participants