mirror of
				https://github.com/Toumash/mlflow-docker
				synced 2025-11-04 07:09:22 +01:00 
			
		
		
		
	bugfix: create bucket using variable name instead of hardcoded one closes #19
This commit is contained in:
		@@ -1,7 +1,7 @@
 | 
			
		||||
version: "3.9"
 | 
			
		||||
services:
 | 
			
		||||
  s3:
 | 
			
		||||
    image:  minio/minio:RELEASE.2021-11-24T23-19-33Z
 | 
			
		||||
    image: minio/minio:RELEASE.2021-11-24T23-19-33Z
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
    ports:
 | 
			
		||||
      - "9000:9000"
 | 
			
		||||
@@ -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