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

ARM64 support at official docker library #5

Open
odidev opened this issue Oct 26, 2020 · 9 comments
Open

ARM64 support at official docker library #5

odidev opened this issue Oct 26, 2020 · 9 comments

Comments

@odidev
Copy link

odidev commented Oct 26, 2020

rocketchat doesn't have ARM64v8 as a supported architecture in Docker Hub. I have successfully built/tested Rocket.Chat.Embedded.arm64 on an ARM64 platform and it is running successfully.

Also, I have explored to add support for ARM64v8 in the docker hub at the official docker library as mentioned in https://github.com/docker-library/official-images/blob/master/library/rocket.chat#L1 it gets generated through generate-stackbrew-library.sh file present in https://github.com/RocketChat/Docker.Official.Image.

generate-stackbrew-library.sh file needs to be updated to add ARM64v8 arch at the official docker library.

Please share your opinion on this.

@ghost
Copy link

ghost commented Oct 27, 2020

I am trying to run Rocket.Chat on armv8 (Raspberry Pi 4). Although there is a snap for it, I would like to use Docker. Using this repository I could build the Docker image, but is the replica database really mandatory? Is it something that the official image uses? Because I believe the official Docker image for Rocket.Chat uses a completely different build process, but I definitely would love to see official support for this.

@odidev May I ask, what were the steps required for you to build the official Docker image? Is it the same build procedure used for x86?

@odidev
Copy link
Author

odidev commented Oct 29, 2020

@odidev May I ask, what were the steps required for you to build the official Docker image? Is it the same build procedure used for x86?

@UnleavenedEagle I used the steps mentioned in the README.md of this repository to build the docker image for arm64.

For reference: https://github.com/RocketChat/Rocket.Chat.Embedded.arm64/blob/develop/docker/README.md

@odidev
Copy link
Author

odidev commented Nov 3, 2020

@Sing-Li Please share your opinion on this.

@Sing-Li
Copy link
Member

Sing-Li commented Nov 3, 2020

@odidev I'm 100% for making an official arm64 image available if it is now feasible.

Ideally we'd want it to tie in with our regular CI https://github.com/RocketChat/Rocket.Chat/tree/develop/.docker

But it was not possible even for the amd64 image, unfortuntely.

@odidev
Copy link
Author

odidev commented Nov 4, 2020

@Sing-Li we will be happy to support this for arm64, but need your opinion regarding, how can we help if it is not even working on amd64?

@Sing-Li
Copy link
Member

Sing-Li commented Nov 20, 2020

@odidev was hoping you might be able to contribute your expertise on making it work 🙂

@odidev
Copy link
Author

odidev commented Dec 8, 2020

@Sing-Li I Tried to build the docker image for arm64 and faced some complexities with dependency 'meteor'.

On x86 platform:

  • Ran the following commands to create the bundle before building the docker image. On x86 platform rocket.chat ran successfully.
meteor build --directory /tmp/build
cp .docker/Dockerfile /tmp/build
cd /tmp/build/
docker build -t rocketchat .

On aarch64 platform:

  • Ran the same commands to create the bundle for aarch64, got the below error, It looks like meteor doesn't have support for aarch64.
Unsupported Architecture: aarch64
Meteor only supports x86_64
  • Worked on building the official meteor repository and after modifying a few scripts was able to create dev_bundle for arm64 but while running the same getting Unsupported architecture: aarch64 error for another dependency meteor-promise.

Please share your thoughts on this?

@simao-silva
Copy link

simao-silva commented Feb 14, 2022

@odidev can you share your compilation steps? I've manage to build the image but when I run it I've got the error Error: /app/bundle/programs/server/npm/node_modules/meteor/accounts-password/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node: cannot open shared object file: No such file or directory and I am not being able to solve it.

@hemna
Copy link

hemna commented May 9, 2024

Looks like there is still no arm64 docker image for rocket.chat. :(

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

4 participants