github.com/minio/minio@v0.0.0-20240328213742-3f72439b8a27/.github/workflows/run-mint.sh (about)

     1  #!/bin/bash
     2  
     3  set -ex
     4  
     5  export MODE="$1"
     6  export ACCESS_KEY="$2"
     7  export SECRET_KEY="$3"
     8  export JOB_NAME="$4"
     9  export MINT_MODE="full"
    10  
    11  docker system prune -f || true
    12  docker volume prune -f || true
    13  docker volume rm $(docker volume ls -f dangling=true) || true
    14  
    15  ## change working directory
    16  cd .github/workflows/mint
    17  
    18  docker-compose -f minio-${MODE}.yaml up -d
    19  sleep 30s
    20  
    21  docker system prune -f || true
    22  docker volume prune -f || true
    23  docker volume rm $(docker volume ls -q -f dangling=true) || true
    24  
    25  # Stop two nodes, one of each pool, to check that all S3 calls work while quorum is still there
    26  [ "${MODE}" == "pools" ] && docker-compose -f minio-${MODE}.yaml stop minio2
    27  [ "${MODE}" == "pools" ] && docker-compose -f minio-${MODE}.yaml stop minio6
    28  
    29  docker run --rm --net=mint_default \
    30  	--name="mint-${MODE}-${JOB_NAME}" \
    31  	-e SERVER_ENDPOINT="nginx:9000" \
    32  	-e ACCESS_KEY="${ACCESS_KEY}" \
    33  	-e SECRET_KEY="${SECRET_KEY}" \
    34  	-e ENABLE_HTTPS=0 \
    35  	-e MINT_MODE="${MINT_MODE}" \
    36  	docker.io/minio/mint:edge
    37  
    38  docker-compose -f minio-${MODE}.yaml down || true
    39  sleep 10s
    40  
    41  docker system prune -f || true
    42  docker volume prune -f || true
    43  docker volume rm $(docker volume ls -q -f dangling=true) || true
    44  
    45  ## change working directory
    46  cd ../../../