mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[GH-ISSUE #823] ARM Docker image build fails #576
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#576
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 (Jan 20, 2020).
Original GitHub issue: https://github.com/dani-garcia/vaultwarden/issues/823
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:
@muddyland commented on GitHub (Jan 29, 2020):
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.
@mprasil commented on GitHub (Jan 29, 2020):
@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)@SuNNjek commented on GitHub (Jan 29, 2020):
@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.
@mprasil commented on GitHub (Jan 29, 2020):
@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 (Jan 29, 2020):
@mprasil Oh, sorry, I didn't see the @ at the beginning, nevermind then
@muddyland commented on GitHub (Jan 29, 2020):
@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 (Jan 29, 2020):
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.