[PR #1048] [MERGED] Add startup script to support init operations #6508

Closed
opened 2026-03-07 21:00:09 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/1048
Author: @jjlin
Created: 7/5/2020
Status: Merged
Merged: 7/6/2020
Merged by: @dani-garcia

Base: masterHead: init


📝 Commits (1)

  • d5f9b33 Add startup script to support init operations

📊 Changes

14 files changed (+41 additions, -13 deletions)

View changed files

📝 docker/Dockerfile.j2 (+2 -1)
📝 docker/aarch64/mysql/Dockerfile (+2 -1)
📝 docker/aarch64/sqlite/Dockerfile (+2 -1)
📝 docker/amd64/mysql/Dockerfile (+2 -1)
📝 docker/amd64/mysql/Dockerfile.alpine (+2 -1)
📝 docker/amd64/postgresql/Dockerfile (+2 -1)
📝 docker/amd64/postgresql/Dockerfile.alpine (+2 -1)
📝 docker/amd64/sqlite/Dockerfile (+2 -1)
📝 docker/amd64/sqlite/Dockerfile.alpine (+2 -1)
📝 docker/armv6/mysql/Dockerfile (+2 -1)
📝 docker/armv6/sqlite/Dockerfile (+2 -1)
📝 docker/armv7/mysql/Dockerfile (+2 -1)
📝 docker/armv7/sqlite/Dockerfile (+2 -1)
docker/start.sh (+15 -0)

📄 Description

This is useful for making local customizations upon container start. To use
this feature, mount a script into the container as /etc/bitwarden_rs.sh
and/or a directory of scripts as /etc/bitwarden_rs.d. In the latter case,
only files with an .sh extension are sourced, so files with other
extensions (e.g., data/config files) can reside in the same dir.

Note that the init scripts are run each time the container starts (not just
the first time), so these scripts should be idempotent.


🔄 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/1048 **Author:** [@jjlin](https://github.com/jjlin) **Created:** 7/5/2020 **Status:** ✅ Merged **Merged:** 7/6/2020 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `master` ← **Head:** `init` --- ### 📝 Commits (1) - [`d5f9b33`](https://github.com/dani-garcia/vaultwarden/commit/d5f9b33f66c99103c0687f3adb08b1396d6dd1b7) Add startup script to support init operations ### 📊 Changes **14 files changed** (+41 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `docker/Dockerfile.j2` (+2 -1) 📝 `docker/aarch64/mysql/Dockerfile` (+2 -1) 📝 `docker/aarch64/sqlite/Dockerfile` (+2 -1) 📝 `docker/amd64/mysql/Dockerfile` (+2 -1) 📝 `docker/amd64/mysql/Dockerfile.alpine` (+2 -1) 📝 `docker/amd64/postgresql/Dockerfile` (+2 -1) 📝 `docker/amd64/postgresql/Dockerfile.alpine` (+2 -1) 📝 `docker/amd64/sqlite/Dockerfile` (+2 -1) 📝 `docker/amd64/sqlite/Dockerfile.alpine` (+2 -1) 📝 `docker/armv6/mysql/Dockerfile` (+2 -1) 📝 `docker/armv6/sqlite/Dockerfile` (+2 -1) 📝 `docker/armv7/mysql/Dockerfile` (+2 -1) 📝 `docker/armv7/sqlite/Dockerfile` (+2 -1) ➕ `docker/start.sh` (+15 -0) </details> ### 📄 Description This is useful for making local customizations upon container start. To use this feature, mount a script into the container as `/etc/bitwarden_rs.sh` and/or a directory of scripts as `/etc/bitwarden_rs.d`. In the latter case, only files with an `.sh` extension are sourced, so files with other extensions (e.g., data/config files) can reside in the same dir. Note that the init scripts are run each time the container starts (not just the first time), so these scripts should be idempotent. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-07 21:00:09 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#6508