From 86a6a81e8984caf51e70b46284eed3ab7f5d5aef Mon Sep 17 00:00:00 2001 From: Jeremy Lin Date: Sun, 21 Feb 2021 04:06:39 -0800 Subject: [PATCH] Created Pre-built binaries (markdown) --- Pre-built-binaries.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Pre-built-binaries.md diff --git a/Pre-built-binaries.md b/Pre-built-binaries.md new file mode 100644 index 0000000..68d5b4a --- /dev/null +++ b/Pre-built-binaries.md @@ -0,0 +1,26 @@ +bitwarden_rs doesn't currently provide standalone binaries as a separate download, but for platforms that have an Alpine-based Docker image available (currently x86-64 and ARMv7), you can extract standalone, statically-linked binaries from the official Docker images. Each Docker image also includes a matching web vault build (which is platform-independent). + +## Extracting binaries with Docker installed + +Assuming you want to extract binaries for the platform you're running on: +``` +docker pull bitwardenrs/server:alpine +docker create --name bwrs bitwardenrs/server:alpine +docker cp bwrs:/bitwarden_rs . +docker cp bwrs:/web-vault . +docker rm bwrs +``` + +If you want binaries for a different platform (for example, you only have Docker installed on your x86-64 machine, but you want to run bitwarden_rs on a Raspberry Pi), add the `--platform` option to the `docker pull` command: +``` +docker pull --platform linux/arm/v7 bitwardenrs/server:alpine +# Run remaining commands as above. +# Note that the `docker create` command may print a message like: +# WARNING: The requested image's platform (linux/arm/v7) does not match the detected host platform (linux/amd64) +# and no specific platform was requested +# This is expected, and isn't cause for concern. +``` + +## Extracting binaries without Docker installed + +TODO \ No newline at end of file