Replace rusoto

This commit is contained in:
Adrian Woźniak 2023-04-02 22:34:30 +02:00
parent 23628d6f9b
commit 5f1d9c1f4d
3 changed files with 17 additions and 0 deletions

9
docker/create-mc-defaults.sh Executable file
View File

@ -0,0 +1,9 @@
mc alias s minio http://minio:9000 $MINIO_ROOT_USER $MINIO_ROOT_PASSWORD
for f in $(mc ls -q --no-color --json minio | jq .key | xargs echo); do
mc rb --force minio/$f
done
for d in $(echo $MINIO_DEFAULT_BUCKETS); do
mc mb minio/$d
done

BIN
docker/jq Executable file

Binary file not shown.

8
docker/mc.Dockerfile Normal file
View File

@ -0,0 +1,8 @@
FROM bitnami/minio-client
WORKDIR /app
COPY ./docker/jq /usr/bin
COPY docker/create-mc-defaults.sh .
ENTRYPOINT [ "sh", "/app/create-mc-defaults.sh" ]