2023-03-29 14:38:43 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
export MODE="$1"
|
|
|
|
export ACCESS_KEY="$2"
|
|
|
|
export SECRET_KEY="$3"
|
|
|
|
export JOB_NAME="$4"
|
|
|
|
export MINT_MODE="full"
|
|
|
|
|
2023-05-16 19:00:57 -04:00
|
|
|
docker system prune -f || true
|
|
|
|
docker volume prune -f || true
|
|
|
|
docker volume rm $(docker volume ls -f dangling=true) || true
|
2023-03-29 14:38:43 -04:00
|
|
|
|
|
|
|
## change working directory
|
2023-03-31 17:38:10 -04:00
|
|
|
cd .github/workflows/mint
|
2023-03-29 14:38:43 -04:00
|
|
|
|
|
|
|
docker-compose -f minio-${MODE}.yaml up -d
|
|
|
|
sleep 5m
|
|
|
|
|
2023-07-14 19:42:35 -04:00
|
|
|
docker system prune -f || true
|
|
|
|
docker volume prune -f || true
|
|
|
|
docker volume rm $(docker volume ls -q -f dangling=true) || true
|
|
|
|
|
2023-07-07 03:10:13 -04:00
|
|
|
# Stop two nodes, one of each pool, to check that all S3 calls work while quorum is still there
|
2023-07-14 19:42:35 -04:00
|
|
|
[ "${MODE}" == "pools" ] && docker-compose -f minio-${MODE}.yaml stop minio2
|
|
|
|
[ "${MODE}" == "pools" ] && docker-compose -f minio-${MODE}.yaml stop minio6
|
2023-07-07 03:10:13 -04:00
|
|
|
|
|
|
|
docker run --rm --net=mint_default \
|
2023-05-26 01:07:25 -04:00
|
|
|
--name="mint-${MODE}-${JOB_NAME}" \
|
2023-07-07 03:10:13 -04:00
|
|
|
-e SERVER_ENDPOINT="nginx:9000" \
|
2023-05-26 01:07:25 -04:00
|
|
|
-e ACCESS_KEY="${ACCESS_KEY}" \
|
|
|
|
-e SECRET_KEY="${SECRET_KEY}" \
|
|
|
|
-e ENABLE_HTTPS=0 \
|
|
|
|
-e MINT_MODE="${MINT_MODE}" \
|
|
|
|
docker.io/minio/mint:edge
|
2023-03-29 14:38:43 -04:00
|
|
|
|
2023-04-05 14:10:24 -04:00
|
|
|
docker-compose -f minio-${MODE}.yaml down || true
|
2023-03-29 14:38:43 -04:00
|
|
|
sleep 10s
|
|
|
|
|
2023-04-05 14:10:24 -04:00
|
|
|
docker system prune -f || true
|
|
|
|
docker volume prune -f || true
|
2023-07-14 19:42:35 -04:00
|
|
|
docker volume rm $(docker volume ls -q -f dangling=true) || true
|
2023-03-29 14:38:43 -04:00
|
|
|
|
|
|
|
## change working directory
|
2023-03-31 17:38:10 -04:00
|
|
|
cd ../../../
|