コード例 #1
0
ファイル: __init__.py プロジェクト: everton137/derex.runner
def create_bucket(project):
    """Create S3 buckets on Minio"""
    from derex.runner.docker_utils import run_minio_shell

    click.echo(f"Creating bucket {project.name} with dowload policy on /profile-images")
    command = f"mc mb --ignore-existing local/{project.name}; "
    command += f"mc policy set download local/{project.name}/profile-images"
    run_minio_shell(command)
コード例 #2
0
ファイル: __init__.py プロジェクト: everton137/derex.runner
def minio_shell():
    from derex.runner.docker_utils import run_minio_shell

    run_minio_shell()