create minio bucket automatically on startup (minio-initialize.sh) #5

Closed
autonomic-bot wants to merge 0 commits from pr-20260623-193109 into main

Port the automatic startup automation from lasuite-docs to lasuite-drive, so first-time deploys no longer require manual post-deploy steps.

Changes:

  1. Auto-migrations (migrate.sh): The backend entrypoint now runs /migrate.sh when AUTO_MIGRATIONS=true (default). It loads secrets, waits for the DB, and idempotently applies pending Django migrations (migrate --checkmigrate --noinput). The manual abra app cmd backend migrate now delegates to the same script.

  2. Auto minio bucket creation (minio-initialize.sh): Replaces 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. 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.

Tested on cctest: all recipe tests pass — health check (HTTP 200), WOPI discovery (Collabora + OnlyOffice), WOPI-on-startup, and full OIDC login flow via Keycloak.

cc @trav @notplants

Port the automatic startup automation from lasuite-docs to lasuite-drive, so first-time deploys no longer require manual post-deploy steps. **Changes:** 1. **Auto-migrations (migrate.sh):** The backend entrypoint now runs `/migrate.sh` when `AUTO_MIGRATIONS=true` (default). It loads secrets, waits for the DB, and idempotently applies pending Django migrations (`migrate --check` → `migrate --noinput`). The manual `abra app cmd backend migrate` now delegates to the same script. 2. **Auto minio bucket creation (minio-initialize.sh):** Replaces 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. 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`. **Tested on cctest:** all recipe tests pass — health check (HTTP 200), WOPI discovery (Collabora + OnlyOffice), WOPI-on-startup, and full OIDC login flow via Keycloak. cc @trav @notplants
autonomic-bot added 2 commits 2026-06-23 19:31:14 +00:00
Add a migrate.sh config (ported from lasuite-docs) that the backend
entrypoint runs when AUTO_MIGRATIONS=true (default). It loads secrets,
waits for the DB, and idempotently applies pending migrations via
'migrate --check' then 'migrate --noinput'. The manual 'abra app cmd
backend migrate' now delegates to the same script.
create minio bucket automatically on startup (minio-initialize.sh)
All checks were successful
cc-ci/testme cc-ci: success
9e4c194783
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'.
autonomic-bot requested review from trav 2026-06-23 19:31:14 +00:00
autonomic-bot requested review from notplants 2026-06-23 19:31:14 +00:00
Author
Owner

!testme

!testme
Author
Owner

🌻 cc-cilasuite-drive @ 9e4c1947 passed

cc-ci result card

level

full logs · dashboard

<!-- cc-ci:testme --> 🌻 **cc-ci** — `lasuite-drive` @ `9e4c1947` ✅ **passed** [![cc-ci result card](https://ci.commoninternet.net/runs/956/summary.png)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/956) [![level](https://ci.commoninternet.net/runs/956/badge.svg)](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/956) [full logs](https://drone.ci.commoninternet.net/recipe-maintainers/cc-ci/956) · [dashboard](https://ci.commoninternet.net/)
Author
Owner

Auto-closed by /recipe-upgrade: its changes are already in upstream main (merged upstream); mirror main re-synced

Auto-closed by /recipe-upgrade: its changes are already in upstream main (merged upstream); mirror main re-synced
autonomic-bot closed this pull request 2026-06-26 02:04:42 +00:00
All checks were successful
cc-ci/testme cc-ci: success

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: recipe-maintainers/lasuite-drive#5
No description provided.