RocketChat / Rocket.Chat.Embedded.arm64

An open source journey bringing the latest Rocket.Chat releases to the arm64 universe
MIT License
23 stars 15 forks source link

ARM64 support at official docker library #5

Open odidev opened 3 years ago

odidev commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

@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 commented 3 years ago

@Sing-Li Please share your opinion on this.

Sing-Li commented 3 years ago

@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 commented 3 years ago

@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 commented 3 years ago

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

odidev commented 3 years ago

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

On x86 platform:

meteor build --directory /tmp/build
cp .docker/Dockerfile /tmp/build
cd /tmp/build/
docker build -t rocketchat .

On aarch64 platform:

Unsupported Architecture: aarch64
Meteor only supports x86_64

Please share your thoughts on this?

simao-silva commented 2 years ago

@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 commented 2 months ago

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