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

building docker version on fresh arm64 #230

Closed
bwmravec opened this issue Apr 5, 2021 · 10 comments
Closed

building docker version on fresh arm64 #230

bwmravec opened this issue Apr 5, 2021 · 10 comments

Comments

@bwmravec
Copy link

bwmravec commented Apr 5, 2021

Hi everyone, I'm trying to build the docker version of rox on fresh ubuntu 20.04/arm64 and getting errors during yarn installation from the latest bootstrap4 branch

[4/4] Building fresh packages...
error /srv/bewelcome/node_modules/fibers: Command failed.
Exit code: 127
Command: node build.js || nodejs build.js
Arguments:
Directory: /srv/bewelcome/node_modules/fibers
Output:
node-gyp not found! Please ensure node-gyp is in your PATH--
Try running: sudo npm install -g node-gyp
spawn node-gyp ENOENT
/bin/sh: nodejs: not found

where would the best place in the setup to integrate the missing package?

@thisismeonmounteverest
Copy link
Contributor

@bwmravec This is not related to a missing node-gyp it seems. I recently run to the docker setup and that worked without issue.

Searching the web I found a few hits for yarn and node-gyp. fibers might be included with the wrong version because of the arm64 platform.

@thisismeonmounteverest
Copy link
Contributor

Just found this one: RocketChat/Docker.Official.Image#48

@bwmravec
Copy link
Author

bwmravec commented Apr 5, 2021

I can't find where exactly is the nodejs version for docker compilation defined :/

@thisismeonmounteverest
Copy link
Contributor

Unfortunately me neither. Maybe the guy who created the docker support can help.

@vincentchalamon Do you know how to resolve this?

@vincentchalamon
Copy link
Contributor

vincentchalamon commented Apr 5, 2021

Hi folks, I'm checking locally with the latest version of the bootstrap4 branch (slow connection, it might take awhile...).

Did you check rebuilding the yarn.lock file? The node packages depends on the system, so if the yarn.lock file has been generated on another system, that could explain the error...

@vincentchalamon
Copy link
Contributor

Successfully built the bootstrap4 branch locally. FYI, the node version is v12.21.0

@bwmravec
Copy link
Author

bwmravec commented Apr 5, 2021

It does build on amd64 without issues, but can't make it work on arm64. How can I refresh yarn.lock for my local system?

@vincentchalamon
Copy link
Contributor

You could try locally: yarn install, it should install the node packages according to your system

@thisismeonmounteverest
Copy link
Contributor

@bwmravec Did you get it working (on your M1 Mac I assume)?

@bwmravec
Copy link
Author

@thisismeonmounteverest I didn't make the docker version work on rpi 4 arm64 due some docker bugs, but manual installation worked fine so I went with that.

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

3 participants