mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-05-12 22:53:56 +00:00
Multi-arch image support
This commit is contained in:
parent
bbef332e25
commit
4559e85daa
12 changed files with 140 additions and 19 deletions
30
hooks/arches.sh
Normal file
30
hooks/arches.sh
Normal file
|
@ -0,0 +1,30 @@
|
|||
# The default Debian-based SQLite images support these arches.
|
||||
#
|
||||
# Other images (Alpine-based, or with other database backends) currently
|
||||
# support only a subset of these.
|
||||
arches=(
|
||||
amd64
|
||||
arm32v6
|
||||
arm32v7
|
||||
arm64v8
|
||||
)
|
||||
|
||||
case "${DOCKER_REPO}" in
|
||||
*-mysql)
|
||||
db=mysql
|
||||
arches=(amd64)
|
||||
;;
|
||||
*-postgresql)
|
||||
db=postgresql
|
||||
arches=(amd64)
|
||||
;;
|
||||
*)
|
||||
db=sqlite
|
||||
;;
|
||||
esac
|
||||
|
||||
if [[ "${DOCKER_TAG}" == *alpine ]]; then
|
||||
# The Alpine build currently only works for amd64.
|
||||
os_suffix=.alpine
|
||||
arches=(amd64)
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue