-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Support musl - npm install on alpine is failing #51
Comments
I'll have to get back to you in regards to the unofficial node, but to work around this quickly you could download and install the unofficial node manually (make sure Secondly, Since I know you came from the original you might want to have a look at this section https://github.com/node-gradle/gradle-node-plugin/blob/master/docs/node.md#executing-npm-tasks |
Hi deepy, thanks for your quick answer, yes, i have copied this issue from the original plugin, and i also found the workaround, and using nginx:alpine image as base, and it works, if i set download = false |
We do have ARM support so I guess it's not entirely out of the question to autodetect and handle it, though I don't know how we'd detect musl, I tried an alpine linux with musl openjdk but there's no java property and I can't find something other than the presence of I guess we could make the node artifact name configurable, but it's not in a great place in the code so that might have to wait until we port the plugin to kotlin. |
how about this? cat /etc/os-release |
We'll go with checking for |
You can work around this by adding an IvyRepo of your own with a different pattern, at least if I look at https://unofficial-builds.nodejs.org/download/release/v13.0.1/ |
Hi
i am using this plugin on 2 instances of linux.
I have seen following error on 1 of the instance newly added to the system:
Task ':OlisWebGUI:npm_install' is not up-to-date because:
Task has not declared any outputs despite executing actions.
Starting process 'command '/home/jenkins/slave/workspace/test/workspace/OlisWeb/OlisWebGUI/.gradle/nodejs/node-v12.13.1-linux-x64/bin/npm''. Working directory: /home/jenkins/slave/workspace/test/workspace/OlisWeb/OlisWebGUI Command: /home/jenkins/slave/workspace/test/workspace/OlisWeb/OlisWebGUI/.gradle/nodejs/node-v12.13.1-linux-x64/bin/npm install
Successfully started process 'command '/home/jenkins/slave/workspace/test/workspace/OlisWeb/OlisWebGUI/.gradle/nodejs/node-v12.13.1-linux-x64/bin/npm''
env: can't execute 'node': No such file or directory
:OlisWebGUI:npm_install (Thread[Execution worker for ':' Thread 5,5,main]) completed. Took 0.066 secs.
FAILURE: Build failed with an exception.
after long debugging, i have found out, the linux i am using where this is failing is alpine, and it looks like, node original distro requires libc, but alpine uses musl
analyzing the official docker image from node:alpine it looks like, there is an unofficial distro for alpine linux.
would it be possible to fix the plugin, so it would detect alpine linux and download the proper distro from node/npm ?
pls also have a look in this file:
https://github.com/nodejs/docker-node/blob/c6bc44e84afcdb81d9749b7b034c60e916a519ad/10/alpine3.10/Dockerfile
Thanks,
kappelmi
The text was updated successfully, but these errors were encountered: