mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 01:45:56 -05:00
[PR #1048] [MERGED] Add startup script to support init operations #6508
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
master← Head:init📝 Commits (1)
d5f9b33Add 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.shand/or a directory of scripts as
/etc/bitwarden_rs.d. In the latter case,only files with an
.shextension are sourced, so files with otherextensions (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.