From 4635d62e2c087e1f0f0049a9d95b06ad0c80b3a4 Mon Sep 17 00:00:00 2001 From: mqus <8398165+mqus@users.noreply.github.com> Date: Fri, 14 Dec 2018 15:04:46 +0100 Subject: [PATCH 1/2] Add memory usage note to vault build process As there were multiple people having problems with the build I thought that maybe adding a note would help. --- BUILD.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/BUILD.md b/BUILD.md index 89bac2d6..8e3d12c1 100644 --- a/BUILD.md +++ b/BUILD.md @@ -37,6 +37,9 @@ git apply /path/to/bitwarden_rs/docker/set-vault-baseurl.patch ``` - Then, build the Vault: + +*Note: building the Vault needs ~1.5GB of RAM. On systems like a RaspberryPI with 1GB or less, please [enable swapping](https://www.tecmint.com/create-a-linux-swap-file/) or build it on a more powerful machine and copy the directory from there. This much memory is only needed for building it, running bitwarden_rs with vault needs about 10mb of RAM* + ```sh npm run sub:init npm install From 76c510c5b63d6dcbb0596dcd31f30061fa8882e1 Mon Sep 17 00:00:00 2001 From: mqus <8398165+mqus@users.noreply.github.com> Date: Fri, 14 Dec 2018 20:32:11 +0100 Subject: [PATCH 2/2] move memory note --- BUILD.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/BUILD.md b/BUILD.md index 8e3d12c1..1e35113f 100644 --- a/BUILD.md +++ b/BUILD.md @@ -21,6 +21,8 @@ A compiled version of the web vault can be downloaded from [dani-garcia/bw_web_b If you prefer to compile it manually, follow these steps: +*Note: building the Vault needs ~1.5GB of RAM. On systems like a RaspberryPI with 1GB or less, please [enable swapping](https://www.tecmint.com/create-a-linux-swap-file/) or build it on a more powerful machine and copy the directory from there. This much memory is only needed for building it, running bitwarden_rs with vault needs only about 10MB of RAM.* + - Clone the git repository at [bitwarden/web](https://github.com/bitwarden/web) and checkout the latest release tag (e.g. v2.1.1): ```sh # clone the repository @@ -38,8 +40,6 @@ git apply /path/to/bitwarden_rs/docker/set-vault-baseurl.patch - Then, build the Vault: -*Note: building the Vault needs ~1.5GB of RAM. On systems like a RaspberryPI with 1GB or less, please [enable swapping](https://www.tecmint.com/create-a-linux-swap-file/) or build it on a more powerful machine and copy the directory from there. This much memory is only needed for building it, running bitwarden_rs with vault needs about 10mb of RAM* - ```sh npm run sub:init npm install