Commit Graph

3 Commits

Author SHA1 Message Date
Zachary Lowden a7b09fbefe fix(dev): repair createbuckets — mc's config/policy commands were removed (#4646)
The `createbuckets` service in docker-compose.base.yml has been failing on
every local `docker compose up`, so the modelshare and images buckets are
never created. It uses two mc subcommands that no longer exist:

    mc config host add   ->  mc alias set
    mc policy set        ->  mc anonymous set

The image is unpinned (`minio/mc`), so this broke silently whenever upstream
dropped them. On mc RELEASE.2025-08-13T08-35-41Z the container exits 1 with:

    mc: <ERROR> `config` is not a recognized command.

Because the entrypoint is a single `&&` chain, the first failure aborts it and
neither bucket is made. Nothing else in the stack reports a problem, so the
failure is easy to miss until something tries to use object storage.

Also add `--ignore-existing` to both `mc mb` calls. Without it the fix would
only work once: `mc mb` on an existing bucket exits 1 ("you already own it"),
which aborts the same `&&` chain, so the service would go back to failing on
the second and every subsequent `docker compose up`.

Verified against a running local MinIO:
  - before: container exits 1, `mc ls` shows no buckets
  - after:  exits 0, both buckets created and set public
  - re-run: exits 0 again (idempotent)
  - control: `mc mb` on an existing bucket is rc=1 without the flag, rc=0 with it
2026-09-05 02:15:05 -05:00
Brett Woodward 8ab42f4981 logical rep setup 2025-08-12 13:20:21 -04:00
Brett Woodward 74270c6e41 allow videos for training datasets, change verbiage to files, have local buzz and signals, oneoff script 2025-04-23 12:27:36 -04:00