mirror of
https://github.com/Toumash/mlflow-docker
synced 2025-11-04 15:19:21 +01:00
bugfix: create bucket using variable name instead of hardcoded one closes #19
This commit is contained in:
@@ -52,10 +52,12 @@ services:
|
||||
image: minio/mc
|
||||
depends_on:
|
||||
- "s3"
|
||||
environment:
|
||||
- MLFLOW_S3_ENDPOINT_URL=http://s3:9000
|
||||
entrypoint: >
|
||||
/bin/sh -c "
|
||||
until (/usr/bin/mc alias set minio http://s3:9000 '${AWS_ACCESS_KEY_ID}' '${AWS_SECRET_ACCESS_KEY}') do echo '...waiting...' && sleep 1; done;
|
||||
/usr/bin/mc mb minio/mlflow;
|
||||
until (/usr/bin/mc alias set minio ${MLFLOW_S3_ENDPOINT_URL} '${AWS_ACCESS_KEY_ID}' '${AWS_SECRET_ACCESS_KEY}') do echo '...waiting...' && sleep 1; done;
|
||||
/usr/bin/mc mb minio/${AWS_BUCKET_NAME};
|
||||
exit 0;
|
||||
"
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user