2024-05-24 18:01:58 +08:00
|
|
|
#!/usr/bin/env bash
|
2019-10-04 23:51:07 +08:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
NAME=minio
|
|
|
|
USER=rclone
|
|
|
|
PASS=AxedBodedGinger7
|
2024-04-08 23:51:49 +08:00
|
|
|
PORT=28625
|
2019-10-04 23:51:07 +08:00
|
|
|
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
|
|
|
|
start() {
|
|
|
|
docker run --rm -d --name $NAME \
|
|
|
|
-e "MINIO_ACCESS_KEY=$USER" \
|
|
|
|
-e "MINIO_SECRET_KEY=$PASS" \
|
2024-04-08 23:51:49 +08:00
|
|
|
-p 127.0.0.1:${PORT}:9000 \
|
2019-10-04 23:51:07 +08:00
|
|
|
minio/minio server /data
|
|
|
|
|
|
|
|
echo type=s3
|
2020-02-13 18:44:42 +08:00
|
|
|
echo provider=Minio
|
2019-10-04 23:51:07 +08:00
|
|
|
echo access_key_id=$USER
|
|
|
|
echo secret_access_key=$PASS
|
2024-04-08 23:51:49 +08:00
|
|
|
echo endpoint=http://127.0.0.1:${PORT}/
|
|
|
|
echo _connect=127.0.0.1:${PORT}
|
2019-10-04 23:51:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
. $(dirname "$0")/run.bash
|