rclone/fstest/testserver/init.d/TestS3Minio
Nick Craig-Wood 3b19f48929 testserver: add provider to TestS3Minio #3934
This is necessary to pass the TestIntegration/FsMkdir/FsEncoding
listing tests.
2020-02-13 11:01:06 +00:00

25 lines
482 B
Bash
Executable file

#!/bin/bash
set -e
NAME=minio
USER=rclone
PASS=AxedBodedGinger7
. $(dirname "$0")/docker.bash
start() {
docker run --rm -d --name $NAME \
-e "MINIO_ACCESS_KEY=$USER" \
-e "MINIO_SECRET_KEY=$PASS" \
minio/minio server /data
echo type=s3
echo provider=Minio
echo access_key_id=$USER
echo secret_access_key=$PASS
echo endpoint=http://$(docker_ip):9000/
echo _connect=$(docker_ip):9000
}
. $(dirname "$0")/run.bash