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
git not found in alpine image #586
Comments
There was a discussion about this here: #367 If you only need it for npm, you should use a multi-stage build. |
I don't think anything has changed from our side since #367, so closing |
If anyone need to use node ( |
|
@alexisdiel what if we do not have permissions to install using |
@JeremyCraigMartinez are you able to compile from source? |
This comment has been minimized.
This comment has been minimized.
Hi, @NuKESec this sort of comment is entirely inappropriate in the Node.js organization repo. Please see our code of conduct on how to conduct yourself inside the organisation. |
|
The problem could be the user in Dockerfile. Looks like it requires to be installed by |
#5274 broke `make load-basic_fsstress` target. It works locally but for some inconceivable reason it fails to build on Kokoro. Error message: ``` Step 1/12 : FROM alpine ---> 1fca6fe4a1ec Step 2/12 : RUN apk add git ---> Running in 109a5326259a standard_init_linux.go:207: exec user process caused "no such file or directory" The command '/bin/sh -c apk add git' returned a non-zero code: 1 make: *** [load-basic_fsstress] Error 1 tools/images.mk:149: recipe for target 'load-basic_fsstress' failed ``` Copied the approach from the following issue to achieve the same goal: nodejs/docker-node#586 (comment). PiperOrigin-RevId: 352188212
#5274 broke `make load-basic_fsstress` target. It works locally but for some inconceivable reason it fails to build on Kokoro. Error message: ``` Step 1/12 : FROM alpine ---> 1fca6fe4a1ec Step 2/12 : RUN apk add git ---> Running in 109a5326259a standard_init_linux.go:207: exec user process caused "no such file or directory" The command '/bin/sh -c apk add git' returned a non-zero code: 1 make: *** [load-basic_fsstress] Error 1 tools/images.mk:149: recipe for target 'load-basic_fsstress' failed ``` Copied the approach from the following issue to achieve the same goal: nodejs/docker-node#586 (comment). PiperOrigin-RevId: 352188212
#5274 broke `make load-basic_fsstress` target. It works locally but for some inconceivable reason it fails to build on Kokoro. Error message: ``` Step 1/12 : FROM alpine ---> 1fca6fe4a1ec Step 2/12 : RUN apk add git ---> Running in 109a5326259a standard_init_linux.go:207: exec user process caused "no such file or directory" The command '/bin/sh -c apk add git' returned a non-zero code: 1 make: *** [load-basic_fsstress] Error 1 tools/images.mk:149: recipe for target 'load-basic_fsstress' failed ``` Copied the approach from the following issue to achieve the same goal: nodejs/docker-node#586 (comment). PiperOrigin-RevId: 352602945
|
We won't be adding any binaries to the alpine (or other images) - the images are supposed to be base images, plus |
Looks like it's missing from the current alpine image.
npm install is kinda fundamental to node and git is required to install certain dependencies.
Including
in the dockerfile will fix it.
The text was updated successfully, but these errors were encountered: