Skip to content

dionysius/vaultwarden-deb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

132 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vaultwarden deb packages

Easy to install and highly configurable debian packages for running Vaultwarden on your system natively without docker - with mysql, postgresql, sqlite and s3 support. Out of the box it can be installed and built on Debian stable, Debian oldstable and latest Ubuntu LTS.

Installation

The easiest way to install vaultwarden is using the apt repository on apt.crunchy.run/vaultwarden. Installation instructions are available directly on the repository page.

Quick installation:

sudo apt install curl
curl -fsSL https://apt.crunchy.run/vaultwarden/install.sh | sudo bash -
sudo apt install vaultwarden

Alternatively, download prebuilt packages from the releases section and verify signatures with the signing-key. Packages are automatically built in Github Actions. You will also need vaultwarden-web-vault-deb.

Configuration

After installation, you can configure the service to your liking by editing /etc/vaultwarden/vaultwarden.env. Restart the service afterwards using systemctl restart vaultwarden. Visit the Vaultwarden wiki for additional resources.

Issues

Release schedule

This project aims to closely match the releases of upstream. The first release in each minor version series starts as a prerelease with a 7-day waiting period to allow upstream to fix oversights in new features or changes. Subsequent releases follow the same waiting period. After the waiting period has passed, all prereleases are automatically promoted to normal releases including new releases.

Build source package

This debian source package builds Vaultwarden natively on your build environment. No annoying docker! It is managed with git-buildpackage and aims to be a pretty good quality debian source package. You can find the maintaining command summary in debian/gbp.conf.

Requirements

Installed git-buildpackage from your apt

Installed build dependencies as defined in debian/control Build-Depends (will notify you in the build process otherwise). mk-build-deps can help you automate the installation, for example:

mk-build-deps -i -r debian/control -t "apt-get -o Debug::pkgProblemResolver=yes --no-install-recommends --yes"

If rust/cargo is not recent enough don't forget to look into your *-updates/*-backports apt sources for newer versions or use rustup.

Build package

Clone with git-buildpackage and switch to the folder:

gbp clone https://github.com/dionysius/vaultwarden-deb.git
cd vaultwarden-deb

Build with git-buildpackage - there are many arguments to fine-tune the build (see gbp buildpackage --help and dpkg-buildpackage --help), notable options: -b (binary-only, no source files), -us (unsigned source package), -uc (unsigned .buildinfo and .changes file), --git-export-dir=<somedir> (before building the package export the source there), for example:

gbp buildpackage -b -us -uc

On successful build packages can now be found in the parent directory ls ../*.deb.

Cross-building for other architectures

Add the target architecture with dpkg --add-architecture <arch> and update package lists with apt update.

Install build dependencies using mk-build-deps from above with additional --host-arch <arch> flag.

Use the build command from above with additional -a<arch> and -Pcross,nocheck flags.

Inspirations and Alternatives

About

Ubuntu/Debian packages and repository for vaultwarden

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project