mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-22 08:03:47 -05:00
[PR #3958] [MERGED] Container building changes #8298
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?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/3958
Author: @BlackDex
Created: 10/5/2023
Status: ✅ Merged
Merged: 10/22/2023
Merged by: @dani-garcia
Base:
main← Head:release-build-revision📝 Commits (4)
685a75fWIP: Container building changesa85417dSmall updatesa765481Update GitHub Actions Workflow79903d2Address review remarks and small updates📊 Changes
43 files changed (+1744 additions, -2949 deletions)
View changed files
📝
.github/workflows/build.yml(+10 -27)📝
.github/workflows/hadolint.yml(+1 -2)📝
.github/workflows/release.yml(+70 -135)📝
.hadolint.yaml(+4 -2)📝
.pre-commit-config.yaml(+1 -1)📝
Cargo.lock(+507 -292)📝
Cargo.toml(+33 -27)📝
Dockerfile(+1 -1)➕
docker/DockerSettings.yaml(+28 -0)➕
docker/Dockerfile.alpine(+160 -0)➖
docker/Dockerfile.buildx(+0 -34)➕
docker/Dockerfile.debian(+194 -0)📝
docker/Dockerfile.j2(+148 -153)📝
docker/Makefile(+4 -15)📝
docker/README.md(+182 -2)➖
docker/amd64/Dockerfile(+0 -119)➖
docker/amd64/Dockerfile.alpine(+0 -116)➖
docker/amd64/Dockerfile.buildkit(+0 -119)➖
docker/amd64/Dockerfile.buildkit.alpine(+0 -116)➖
docker/arm64/Dockerfile(+0 -141)...and 23 more files
📄 Description
Rework the container building.
docker buildx bakeinstead of custom build/push scriptsbake.shto easily bake/build the images (Read the documentation)podman-bake.shwhich uses podman instead of docker.I needed to change some way's to install the packages for MariaDB/MySQL, since on armv6/armel Debian it causes issues.
By downloading them and force installing via
dpkgthe build process still works on all platforms.All images are tested using QEMU and also run the Favicon DDoS on all these images to verify it doesn't segfault.
The Alpine build images are now downloaded from ghcr.io instead of docker.io, maybe it helps in speed, but probably doesn't matter.
The runtime images are no longer a version maintained by Balena, they were sometimes outdated like there Alpine version was for a long time. And it also had a static qemu binary in there which only makes the image larger. Now we use the official images from both Debian and Alpine.
Also switched to the
-slimrust building container, this has all the needed packages pre-installed (except for pkg-config).Also:
Fixes #3839
Fixes #3912
Fixes #3957
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.