[PR #959] [CLOSED] Add RPM package #2836

Closed
opened 2026-03-03 08:53:17 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/959
Author: @alexpdp7
Created: 4/9/2020
Status: Closed

Base: mainHead: rpm


📝 Commits (1)

📊 Changes

7 files changed (+129 additions, -2 deletions)

View changed files

.rpm/bitwarden_rs.service (+13 -0)
.rpm/bitwarden_rs.spec (+54 -0)
📝 Cargo.toml (+12 -2)
packages/centos8/Dockerfile (+10 -0)
packages/centos8/README (+7 -0)
packages/centos8/build (+15 -0)
packages/centos8/build-in-docker (+18 -0)

📄 Description

This is a WIP, I'm interested in creating a CentOS 8 package for bitwarden_rs that installs a systemd user service using SQLite and provide a COPR dnf/yum repo.

(My thought is that from reading the documentation, I see that bitwarden_rs is meant to be single-user? Having a systemd user service would mean that you could have every user in a system run their own bitwarden_rs easily, but maybe I got this part wrong).

There is no reason this wouldn't work for other CentOS/RHEL/Fedora versions.

The package "works" right now, but it's running with WEB_VAULT_ENABLED=false, it only supports SQLite.

It's also pushing to a COPR repo in my fork. To test it:

$ sudo dnf copr enable koalillo/bitwarden_rs 
$ sudo dnf install bitwarden_rs
$ curl http://localhost:8000/

This is in part a RPM/COPR learning exercise, but I think it would be a cool idea to mainline RPM support. If we merge something like this, it should be easy to set up CI to push new packages to a COPR repo for every release automatically. People then can install it with the two commands above and have it automatically patched with dnf-automatic.

I'm happy to fix more stuff. If you guys don't want to mainline this (I know maintaining more things is never easy), I'm happy to keep this in an external repo.

Also note that at this point:

  • Fedora/CentOS apparently won't accept nightly-based Rust software in their main repos
  • I think this PR manages to evade best practices in all steps of the way. It works, but it's not "good"

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/959 **Author:** [@alexpdp7](https://github.com/alexpdp7) **Created:** 4/9/2020 **Status:** ❌ Closed **Base:** `main` ← **Head:** `rpm` --- ### 📝 Commits (1) - [`6645f19`](https://github.com/dani-garcia/vaultwarden/commit/6645f190fa61db24be4c5705b6772f76d1d34a66) WIP: Draft RPM package ### 📊 Changes **7 files changed** (+129 additions, -2 deletions) <details> <summary>View changed files</summary> ➕ `.rpm/bitwarden_rs.service` (+13 -0) ➕ `.rpm/bitwarden_rs.spec` (+54 -0) 📝 `Cargo.toml` (+12 -2) ➕ `packages/centos8/Dockerfile` (+10 -0) ➕ `packages/centos8/README` (+7 -0) ➕ `packages/centos8/build` (+15 -0) ➕ `packages/centos8/build-in-docker` (+18 -0) </details> ### 📄 Description This is a WIP, I'm interested in creating a CentOS 8 package for bitwarden_rs that installs a systemd user service using SQLite and provide a COPR dnf/yum repo. (My thought is that from reading the documentation, I see that bitwarden_rs is meant to be single-user? Having a systemd user service would mean that you could have every user in a system run their own bitwarden_rs easily, but maybe I got this part wrong). There is no reason this wouldn't work for other CentOS/RHEL/Fedora versions. The package "works" right now, but it's running with `WEB_VAULT_ENABLED=false`, it only supports SQLite. It's also pushing to a COPR repo in my fork. To test it: ``` $ sudo dnf copr enable koalillo/bitwarden_rs $ sudo dnf install bitwarden_rs $ curl http://localhost:8000/ ``` This is in part a RPM/COPR learning exercise, but I think it would be a cool idea to mainline RPM support. If we merge something like this, it should be easy to set up CI to push new packages to a COPR repo for every release automatically. People then can install it with the two commands above and have it automatically patched with dnf-automatic. I'm happy to fix more stuff. If you guys don't want to mainline this (I know maintaining more things is never easy), I'm happy to keep this in an external repo. Also note that at this point: * Fedora/CentOS apparently won't accept nightly-based Rust software in their main repos * I think this PR manages to evade best practices in all steps of the way. It works, but it's not "good" --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 08:53:17 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#2836
No description provided.