Example #1
0
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)
Example #2
0
def minio_shell():
    from derex.runner.docker_utils import run_minio_shell

    run_minio_shell()