github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/fstest/testserver/init.d/TestS3Minio (about) 1 #!/bin/bash 2 3 set -e 4 5 NAME=minio 6 USER=rclone 7 PASS=AxedBodedGinger7 8 9 . $(dirname "$0")/docker.bash 10 11 start() { 12 docker run --rm -d --name $NAME \ 13 -e "MINIO_ACCESS_KEY=$USER" \ 14 -e "MINIO_SECRET_KEY=$PASS" \ 15 minio/minio server /data 16 17 echo type=s3 18 echo access_key_id=$USER 19 echo secret_access_key=$PASS 20 echo endpoint=http://$(docker_ip):9000/ 21 echo _connect=$(docker_ip):9000 22 } 23 24 . $(dirname "$0")/run.bash