Issue building a node app using arm32v7/node image


#1

Hi fellow GitLab fans! I need your help.

I getting an error trying to get past the CI build when pushing an application using arm32v7/node image.
I keep getting the error below. I don’t have issues building locally. Could this be an issue with the runners?

Status: Downloaded newer image for arm32v7/node:8-slim
 ---> 45dfb2665556
Step 2/6 : RUN mkdir /app
 ---> Running in 12fd0c66e46f
standard_init_linux.go:185: exec user process caused "no such file or directory"
The command '/bin/sh -c mkdir /app' returned a non-zero code: 1
ERROR: Job failed: exit code 1

Sample project:


#2

@supermamonI think you’d need to use an ARM based Runner. If this job runs on GitLab.com shared Runners, that’s probably the cause. Try to test on a Runner of your own, you can find the latest arm binary at https://gitlab-runner-downloads.s3.amazonaws.com/latest/index.html.


#3

Thanks. It does seem like it. Yes, I’m using the shared runners. I’ll try installing a runner of my mac. But I don’t have a dedicated server where I could run it on which would defeat the purpose of having a CI workflow. Hopefully I could figure something out.


#4

@supermamon Hi, did you have any success? I have the exact same issue:

standard_init_linux.go:190: exec user process caused "no such file or directory"
The command '/bin/sh -c npm install --production' returned a non-zero code: 1
ERROR: Job failed: exit code 1

Works perfect locally though.


#5

I didn’t try to make a local runner though. I looked for a pre-built image that works for both the shared runners and my Raspberry Pi.


#6

I didn’t try to make a local runner though. I looked for a pre-built image that works for both the shared runners and my Raspberry Pi.


#7

Ok, which one did you use?


#8

resin/raspberrypi3-node


#9

Thanks, I’ll try it out.