rclone/fstest/testserver/init.d/TestS3Minio
Nick Craig-Wood 24ef00a258 build: implement a framework for starting test servers during tests
Test servers are implemented by docker containers and run real servers
for rclone to test against.
2020-01-18 16:47:37 +00:00

24 lines
458 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 access_key_id=$USER
echo secret_access_key=$PASS
echo endpoint=http://$(docker_ip):9000/
echo _connect=$(docker_ip):9000
}
. $(dirname "$0")/run.bash