vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 1698b43f9bb6ea3f82db58e956f05dbbc002fe1b
parent 078b21db85b26595aa0f4d880b7f6a60a2c75504
Author: Robin Schneider <ypid@riseup.net>
Date:   Tue, 31 Dec 2019 15:49:22 +0100

Readd missing cargo setup for armv7. Thanks to @dani-garcia!

Diffstat:
Mdocker/Dockerfile.j2 | 12++++++++++++
Mdocker/armv7/mysql/Dockerfile | 11+++++++++++
Mdocker/armv7/sqlite/Dockerfile | 11+++++++++++
3 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/docker/Dockerfile.j2 b/docker/Dockerfile.j2 @@ -135,6 +135,18 @@ RUN apt-get update \ ENV CARGO_HOME "/root/.cargo" ENV USER "root" +{% elif "armv7" in target_file %} +RUN apt-get update \ + && apt-get install -y \ + --no-install-recommends \ + gcc-arm-linux-gnueabihf \ + && mkdir -p ~/.cargo \ + && echo '[target.armv7-unknown-linux-gnueabihf]' >> ~/.cargo/config \ + && echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config + +ENV CARGO_HOME "/root/.cargo" +ENV USER "root" + {% endif %} {% if "mysql" in target_file %} # Install MySQL package diff --git a/docker/armv7/mysql/Dockerfile b/docker/armv7/mysql/Dockerfile @@ -47,6 +47,17 @@ RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ libssl-dev:armhf \ libc6-dev:armhf +RUN apt-get update \ + && apt-get install -y \ + --no-install-recommends \ + gcc-arm-linux-gnueabihf \ + && mkdir -p ~/.cargo \ + && echo '[target.armv7-unknown-linux-gnueabihf]' >> ~/.cargo/config \ + && echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config + +ENV CARGO_HOME "/root/.cargo" +ENV USER "root" + # Install MySQL package RUN apt-get update && apt-get install -y \ --no-install-recommends \ diff --git a/docker/armv7/sqlite/Dockerfile b/docker/armv7/sqlite/Dockerfile @@ -47,6 +47,17 @@ RUN sed 's/^deb/deb-src/' /etc/apt/sources.list > \ libssl-dev:armhf \ libc6-dev:armhf +RUN apt-get update \ + && apt-get install -y \ + --no-install-recommends \ + gcc-arm-linux-gnueabihf \ + && mkdir -p ~/.cargo \ + && echo '[target.armv7-unknown-linux-gnueabihf]' >> ~/.cargo/config \ + && echo 'linker = "arm-linux-gnueabihf-gcc"' >> ~/.cargo/config + +ENV CARGO_HOME "/root/.cargo" +ENV USER "root" + # Creates a dummy project used to grab dependencies RUN USER=root cargo new --bin /app WORKDIR /app