fix(docker): create SeaweedFS bucket with aws-cli instead of minio/mc (#3544)

quay.io/minio/mc:latest is no longer publicly pullable (401 UNAUTHORIZED),
which broke the Docker publish workflow. Use the official amazon/aws-cli
image to create the bucket idempotently via head-bucket || s3 mb.
This commit is contained in:
Amruth Pillai
2026-09-26 10:25:04 +02:00
committed by GitHub
parent 712298843b
commit 0cb83602f5
3 changed files with 21 additions and 14 deletions
+7 -3
View File
@@ -336,14 +336,18 @@ services:
replicas: 1
seaweedfs_create_bucket:
image: quay.io/minio/mc:latest
image: amazon/aws-cli:latest
environment:
- AWS_ACCESS_KEY_ID=$S3_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY=$S3_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION=us-east-1
entrypoint: >
/bin/sh -c "
until mc alias set seaweedfs http://seaweedfs:8333 $S3_ACCESS_KEY_ID $S3_SECRET_ACCESS_KEY; do
until aws --endpoint-url http://seaweedfs:8333 s3api head-bucket --bucket $S3_BUCKET 2>/dev/null ||
aws --endpoint-url http://seaweedfs:8333 s3 mb s3://$S3_BUCKET; do
echo 'Waiting for SeaweedFS...';
sleep 2;
done;
mc mb seaweedfs/$S3_BUCKET --ignore-existing;
"
networks:
- reactive_resume_network