Installation without Docker? #2215

Closed
opened 2025-10-09 17:51:30 +03:00 by OVERLORD · 9 comments
Owner

Originally created by @Geobert on GitHub.

Hi there,

I'm quite a noob in server admin field and I've never used Docker before. Everything on my small personal server (Debian stretch) is installed the old apt way.

That being said, is there a way to install bitwarden_rs without Docker?

If not, I believe I'll learn Docker ^^

Originally created by @Geobert on GitHub. Hi there, I'm quite a noob in server admin field and I've never used Docker before. Everything on my small personal server (Debian stretch) is installed the old apt way. That being said, is there a way to install bitwarden_rs without Docker? If not, I believe I'll learn Docker ^^
Author
Owner

@pgaskin commented on GitHub:

You need to apt install jq.

@pgaskin commented on GitHub: You need to apt install jq.
Author
Owner

@dani-garcia commented on GitHub:

If you can build the binary yourself, you can read https://github.com/dani-garcia/bitwarden_rs/wiki/Building-binary. I think that would be the best way. Extracting the binary from the image, like the previous comment mentioned, is also an alternative.

@dani-garcia commented on GitHub: If you can build the binary yourself, you can read https://github.com/dani-garcia/bitwarden_rs/wiki/Building-binary. I think that would be the best way. Extracting the binary from the image, like the previous comment mentioned, is also an alternative.
Author
Owner

@pgaskin commented on GitHub:

You can extract the docker image (or build it yourself).

First, download: https://github.com/moby/moby/blob/master/contrib/download-frozen-image-v2.sh

Then:

rm -rf dl
mkdir dl
cd dl
../download-frozen-image-v2.sh img mprasil/bitwarden:alpine || echo "Error downloading image"
for t in img/*/layer.tar; do
    tar xf "$t" web-vault &>/dev/null
    tar xf "$t" bitwarden_rs &>/dev/null
done
rm -rf img
[[ -d web-vault ]] || echo "Error extracting web-vault"
[[ -f bitwarden_rs ]] || echo "Error extracting bitwarden_rs"

Note: You can ignore the errors about go not being installed.

@pgaskin commented on GitHub: You can extract the docker image (or build it yourself). First, download: https://github.com/moby/moby/blob/master/contrib/download-frozen-image-v2.sh Then: ```` rm -rf dl mkdir dl cd dl ../download-frozen-image-v2.sh img mprasil/bitwarden:alpine || echo "Error downloading image" for t in img/*/layer.tar; do tar xf "$t" web-vault &>/dev/null tar xf "$t" bitwarden_rs &>/dev/null done rm -rf img [[ -d web-vault ]] || echo "Error extracting web-vault" [[ -f bitwarden_rs ]] || echo "Error extracting bitwarden_rs" ```` Note: You can ignore the errors about go not being installed.
Author
Owner

@Geobert commented on GitHub:

I'll try that thank you!

@Geobert commented on GitHub: I'll try that thank you!
Author
Owner

@Geobert commented on GitHub:

I tried the script, I got error: "jq" not found!

@Geobert commented on GitHub: I tried the script, I got `error: "jq" not found!`
Author
Owner

@Geobert commented on GitHub:

Thanks, I didn't know about jq until today :D

It seems I need go as well but can't install it through apt. I'll try compilation, I'm a Rust hobbyist, I already have the stable toolchain. Is nightly still mandatory?

EDIT: edited the script to remove go at the beginning check, it works ^^ My question about nightly still goes, by curiosity and maybe future contrib :D

@Geobert commented on GitHub: Thanks, I didn't know about jq until today :D It seems I need `go` as well but can't install it through apt. I'll try compilation, I'm a Rust hobbyist, I already have the stable toolchain. Is nightly still mandatory? EDIT: edited the script to remove go at the beginning check, it works ^^ My question about nightly still goes, by curiosity and maybe future contrib :D
Author
Owner

@Geobert commented on GitHub:

go's presence is checked in the shell script https://github.com/moby/moby/blob/master/contrib/download-frozen-image-v2.sh but @geek1011 told me it can be ignore

thanks for the nightly explanation!

@Geobert commented on GitHub: `go`'s presence is checked in the shell script https://github.com/moby/moby/blob/master/contrib/download-frozen-image-v2.sh but @geek1011 told me it can be ignore thanks for the nightly explanation!
Author
Owner

@mprasil commented on GitHub:

I'm kinda confused what makes you think you need go? Is it a dependency to build Vault? You can also skip that step and download already built Vault from here.

As for your other question, you still need nightly, but there's rust-toolchain file in the repository that should make cargo build download appropriate version automatically. (we require nightly as our upstream dependency - Rocket requires nightly) Hope that helps.

@mprasil commented on GitHub: I'm kinda confused what makes you think you need `go`? Is it a dependency to build Vault? You can also skip that step and download already built Vault from [here](https://github.com/dani-garcia/bw_web_builds/releases). As for your other question, you still need nightly, but there's `rust-toolchain` file in the repository that should make `cargo build` download appropriate version automatically. (we require nightly as our upstream dependency - Rocket requires nightly) Hope that helps.
Author
Owner

@mprasil commented on GitHub:

Ah right, that's for the moby project, yeah that makes sense as it's written in Go.

@mprasil commented on GitHub: Ah right, that's for the moby project, yeah that makes sense as it's written in Go.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/vaultwarden#2215