create minio bucket automatically on startup (minio-initialize.sh)
All checks were successful
cc-ci/testme cc-ci: success

Replace the one-shot minio-createbuckets service (which required a
manual 'abra app restart minio-createbuckets' that appeared to hang)
with a minio-initialize.sh config, ported from lasuite-docs. The minio
service entrypoint runs it in the background before starting minio; it
waits for minio to be ready and idempotently creates the
drive-media-storage bucket with versioning. Manual trigger:
'abra app cmd minio minio_initialize'.
This commit is contained in:
notplants
2026-06-23 19:26:19 +00:00
committed by notplants
parent 0b64135f98
commit 9e4c194783
4 changed files with 43 additions and 24 deletions

View File

@ -5,6 +5,7 @@ export NGINX_CONF_VERSION=v6
export ONLYOFFICE_CONF_VERSION=v2
export PG_BACKUP_VERSION=v4
export MIGRATE_VERSION=v1
export MINIO_INITIALIZE_VERSION=v1
environment() {
# this exports all the secrets as environment variables
@ -15,6 +16,10 @@ migrate() {
/migrate.sh
}
minio_initialize() {
/minio-initialize.sh
}
trigger_wopi() {
environment
python manage.py trigger_wopi_configuration