Port the automatic startup automation from lasuite-docs to lasuite-drive, so first-time deploys no longer require manual post-deploy steps.
Changes:
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.
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.
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
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.
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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Port the automatic startup automation from lasuite-docs to lasuite-drive, so first-time deploys no longer require manual post-deploy steps.
Changes:
Auto-migrations (migrate.sh): The backend entrypoint now runs
/migrate.shwhenAUTO_MIGRATIONS=true(default). It loads secrets, waits for the DB, and idempotently applies pending Django migrations (migrate --check→migrate --noinput). The manualabra app cmd backend migratenow delegates to the same script.Auto minio bucket creation (minio-initialize.sh): Replaces the one-shot
minio-createbucketsservice (which required a manualabra app restart minio-createbucketsthat appeared to hang) with aminio-initialize.shconfig. The minio service entrypoint runs it in the background before starting minio; it waits for minio to be ready and idempotently creates thedrive-media-storagebucket 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
!testme
🌻 cc-ci —
lasuite-drive@9e4c1947✅ passedfull logs · dashboard
Auto-closed by /recipe-upgrade: its changes are already in upstream main (merged upstream); mirror main re-synced
Pull request closed