mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 09:54:49 -05:00
[PR #784] [MERGED] Use Debian base image for all steps of the build process #2666
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/784
Author: @ypid
Created: 12/28/2019
Status: ✅ Merged
Merged: 1/5/2020
Merged by: @dani-garcia
Base:
master← Head:docker/use-debian-base📝 Commits (10+)
f250c54WIP: Use Debian base image for all steps of the build process8280d20Generate Dockerfiles from one source for maintainability. Closes #785.43aa75dFix cross platform build support, thanks to @dani-garcia for the review0f0e587Movedpkg --add-architecturebefore the first apt call47a5a4eFix package name for Ubuntu 16.04 based image. Thanks @dani-garcia!7a0bb18Makecargo newindependent of workdir to be exact43adcdeMoverustup targetbeforecargo build. Thanks to @dani-garcia!078b21dFix armv6 build, thanks to @dani-garcia for the review!1698b43Readd missing cargo setup for armv7. Thanks to @dani-garcia!146525dImprove Jinja2 template logic a bit📊 Changes
15 files changed (+851 additions, -170 deletions)
View changed files
➕
docker/Dockerfile.j2(+322 -0)➕
docker/Makefile(+9 -0)📝
docker/aarch64/mysql/Dockerfile(+60 -20)📝
docker/aarch64/sqlite/Dockerfile(+55 -20)📝
docker/amd64/mysql/Dockerfile(+24 -7)📝
docker/amd64/mysql/Dockerfile.alpine(+30 -7)📝
docker/amd64/postgresql/Dockerfile(+26 -16)📝
docker/amd64/postgresql/Dockerfile.alpine(+30 -8)📝
docker/amd64/sqlite/Dockerfile(+25 -8)📝
docker/amd64/sqlite/Dockerfile.alpine(+29 -7)📝
docker/armv6/mysql/Dockerfile(+59 -19)📝
docker/armv6/sqlite/Dockerfile(+54 -19)📝
docker/armv7/mysql/Dockerfile(+58 -20)📝
docker/armv7/sqlite/Dockerfile(+53 -19)➕
docker/render_template(+17 -0)📄 Description
No need to use two different base images. Debian buster is pulled later anyway so we can just use it for the vault stage as well.
My reason for this change is partly to avoid redundancy and partly to make it easier to build everything yourself. When all the build environment is based on Debian than you just have to figure out how to build a Debian Docker base image (ref: https://github.com/ypid/docker-makefile).
WIP: This PR is incomplete. I first wanted to check if this is acceptable two you because I put together a short script to replace this in all the Dockerfiles.I assume the broken windows CI build is not my fault. Why support Windows anyway ;-)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.