mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-11 09:13:02 +03:00
ARM Docker image build fails #1840
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SuNNjek on GitHub.
Subject of the issue
The current MySQL Dockerfiles for ARM don't build. Generated PostgreSQL Dockerfiles also don't work for ARM.
Your environment
Steps to reproduce
docker/armv7/mysql/Dockerfile)docker build -t bitwarden_rs:arm .Expected behaviour
Docker successfully builds the image
Actual behaviour
Compilation fails during the linking stage
Relevant logs
MySQL:
PostgreSQL:
@mprasil commented on GitHub:
@lambro690 are you building on ARM device? The
cross-build-startis there to allow building ARM image on x86 hardware. (that's available on docker hub)@mprasil commented on GitHub:
@SuNNjek I was asking @lambro690, because the
cross-build-startstep is after the linking issue that you experience. So I think it's not relevant for you.As for your problem, this seems to be a duplicate of #530. There seems to be some problem with statically linking the mysql libs. AFAIK no one managed to cross-compile the binary.
@SuNNjek commented on GitHub:
@mprasil Oh, sorry, I didn't see the @ at the beginning, nevermind then
@muddyland commented on GitHub:
I had the same issue. Removing the lines:
RUN [ "cross-build-start" ]and
RUN [ "cross-build-end" ]allowed me to build successfully. Although, I am sure the defeats the purpose of cross-building.
At least we know that there is something wrong with these lines.
@SuNNjek commented on GitHub:
@mprasil No, I'm building on x86 (x64). If I use the amd64 Postgres Dockerfile on my Raspberry Pi 4, I can get it to work because then I don't have to cross compile, but that takes ages, so I would prefer to cross compile on my PC.
The SQLite cross-compilation Dockerfile seems to be the only one that actually works without an error.
@muddyland commented on GitHub:
@mprasil Yes I built on a Pi 4 since I remember seeing #530 a while back. My work around is to build on Arm rather than use the cross-build. While it takes longer, it is the only thing that works currently.
@mprasil commented on GitHub:
I see, well we can't really build on ARM if the builds are going to be "trusted" (built on docker hub), so this is the only way as far as I know and it's unfortunately not working with mysql or postgres.
I'm going to close this to avoid duplicates, any progress will be tracked under #530.