|
|
|
@ -27,6 +27,18 @@ |
|
|
|
# $ docker image inspect --format "{{ '{{' }}.RepoTags}}" docker.io/vaultwarden/web-vault@{{ vault_image_digest }} |
|
|
|
# [docker.io/vaultwarden/web-vault:{{ vault_version }}] |
|
|
|
# |
|
|
|
{% macro debian_mariadb_snapshot_info() -%} |
|
|
|
# Force the install of an older MariaDB library to prevent a Diesel panic |
|
|
|
# See https://github.com/dani-garcia/vaultwarden/issues/6416 |
|
|
|
{%- endmacro %} |
|
|
|
{% macro debian_mariadb_snapshot() -%} |
|
|
|
echo "deb http://snapshot.debian.org/archive/debian/20250707T084701Z/ trixie main" > /etc/apt/sources.list.d/snapshot.list && \ |
|
|
|
echo "Acquire::Check-Valid-Until false;" > /etc/apt/apt.conf.d/AllowSnapshot && \ |
|
|
|
echo 'Package: libmariadb libmariadb3 libmariadb-dev mariadb*' > /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
echo 'Pin: origin "snapshot.debian.org"' >> /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
echo 'Pin-Priority: 1001' >> /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
# Continue with normal install |
|
|
|
{%- endmacro %} |
|
|
|
FROM --platform=linux/amd64 docker.io/vaultwarden/web-vault@{{ vault_image_digest }} AS vault |
|
|
|
|
|
|
|
{% if base == "debian" %} |
|
|
|
@ -70,19 +82,13 @@ ENV DEBIAN_FRONTEND=noninteractive \ |
|
|
|
|
|
|
|
{% if base == "debian" %} |
|
|
|
|
|
|
|
# Force the install of an older MariaDB library to prevent a Diesel panic |
|
|
|
# See https://github.com/dani-garcia/vaultwarden/issues/6416 |
|
|
|
RUN echo "deb http://snapshot.debian.org/archive/debian/20250707T084701Z/ trixie main" > /etc/apt/sources.list.d/snapshot.list && \ |
|
|
|
echo "Acquire::Check-Valid-Until false;" > etc/apt/apt.conf.d/AllowSnapshot && \ |
|
|
|
echo 'Package: libmariadb libmariadb3 libmariadb-dev mariadb*' > /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
echo 'Pin: origin "snapshot.debian.org"' >> /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
echo 'Pin-Priority: 1001' >> /etc/apt/preferences.d/mariadb-snapshot |
|
|
|
|
|
|
|
{{ debian_mariadb_snapshot_info() }} |
|
|
|
# Install clang to get `xx-cargo` working |
|
|
|
# Install pkg-config to allow amd64 builds to find all libraries |
|
|
|
# Install git so build.rs can determine the correct version |
|
|
|
# Install the libc cross packages based upon the debian-arch |
|
|
|
RUN apt-get update && \ |
|
|
|
RUN {{ debian_mariadb_snapshot() }} |
|
|
|
apt-get update && \ |
|
|
|
apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
clang \ |
|
|
|
@ -213,17 +219,13 @@ ENV ROCKET_PROFILE="release" \ |
|
|
|
SSL_CERT_DIR=/etc/ssl/certs |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{% if base == "debian" %} |
|
|
|
{{ debian_mariadb_snapshot_info() }} |
|
|
|
{% endif %} |
|
|
|
# Create data folder and Install needed libraries |
|
|
|
RUN mkdir /data && \ |
|
|
|
{% if base == "debian" %} |
|
|
|
# Force the install of an older MariaDB library to prevent a Diesel panic |
|
|
|
# See https://github.com/dani-garcia/vaultwarden/issues/6416 |
|
|
|
echo "deb http://snapshot.debian.org/archive/debian/20250707T084701Z/ trixie main" > /etc/apt/sources.list.d/snapshot.list && \ |
|
|
|
echo "Acquire::Check-Valid-Until false;" > etc/apt/apt.conf.d/AllowSnapshot && \ |
|
|
|
echo 'Package: libmariadb libmariadb3 libmariadb-dev mariadb*' > /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
echo 'Pin: origin "snapshot.debian.org"' >> /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
echo 'Pin-Priority: 1001' >> /etc/apt/preferences.d/mariadb-snapshot && \ |
|
|
|
# Continue with normal install |
|
|
|
{{ debian_mariadb_snapshot() }} |
|
|
|
apt-get update && apt-get install -y \ |
|
|
|
--no-install-recommends \ |
|
|
|
ca-certificates \ |
|
|
|
|