Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
DO-49 🐳 ✨ Create initial buckets (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kravetz committed Jan 10, 2020
1 parent 72b4c2b commit ed6af37
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,33 @@ services:
ports:
- "9000:9000"

initial-buckets:
image: minio/mc
depends_on:
- minio-dev
environment:
MINIO_ACCESS_KEY: minio
MINIO_SECRET_KEY: minio123
networks:
- xain-fl-dev
entrypoint: >
/bin/sh -c "
echo Waiting for minio service to start...;
while ! nc -z minio-dev 9000;
do
sleep 5;
done;
echo Connected!;
mc config host add dev-minio http://minio-dev:9000 $${MINIO_ACCESS_KEY} $${MINIO_SECRET_KEY};
/usr/bin/mc mb -p dev-minio/xain-fl-temporary-weights;
/usr/bin/mc mb -p dev-minio/xain-fl-aggregated-weights;
/usr/bin/mc policy set upload dev-minio/xain-fl-temporary-weights;
/usr/bin/mc policy set download dev-minio/xain-fl-temporary-weights;
/usr/bin/mc policy set upload dev-minio/xain-fl-aggregated-weights;
/usr/bin/mc policy set download dev-minio/xain-fl-aggregated-weights;
/usr/bin/mc admin trace -v -e dev-minio;
"
xain-fl-dev:
build:
context: .
Expand Down

0 comments on commit ed6af37

Please sign in to comment.