-
Notifications
You must be signed in to change notification settings - Fork 41
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
Dockerfile Node.JS installation script deprecated #437
Comments
NOTE: As of today, if you just wait the 60 seconds the build will proceed and, in my case, complete successfully. This issue is staying open because it DOES need to be addressed. |
This doesn't work. Each RUN is counted as a separate process. Just replace the original curl with the new commands, but terminate each line with \ and put && at the start of the next line. This keeps each line within the same process. (I'm not able to test this at the moment, as I'm away from home, but that is probably all it needs.) |
I changed the Dockerfile to this:
It performed the same way as doing the
If anyone else who sees this is able to try this on a non WSL2 machine, please let us know if it does this for you too. |
Addresses frandallfarmer#437. NodeSource has reinstated the deprecated installer scripts, but the NodeSource repo doesn't contain a packge for npm, and the CentOS package for npm conflicts with the NodeSource nodejs. Updated to use the nsolid package directly. Also updated the habibots Dockerfile to use the latest node 18 image. Debian Bookworm transitioned the netcat package from one that installed netcat-openbsd to a "virtual package" which doesn't specify a preferred version. Changed it to specify netcat-openbsd explicitly.
When attempting to setup a fresh NeoHabitat instance using Docker, the build fails when you get to the part where we attempt to install Node.JS.
This line from the Dockerfile in particular is where it will die:
curl -fsSL https://rpm.nodesource.com/setup_18.x | bash -
When you run this command, you'll get this output:
If you head to the NodeSource distribution Github repo as mentioned above, you'll see the instructions for installing via this method have changed to the following commands:
This command is meant to install Node.JS version 18.
If you add this into the Dockerfile by commenting the original line out and prefixing each of the above lines with
RUN
, the Docker compose setup will continue on past the point of failure and begin to install the base build dependencies on the next line of the Dockerfile.However, it gets to the following line and then stalls to infinity and I cannot get it to proceed past this point:
The text was updated successfully, but these errors were encountered: