2024-05-24 12:01:58 +02:00
|
|
|
#!/usr/bin/env bash
|
2019-10-04 17:51:07 +02:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
NAME=minio
|
|
|
|
USER=rclone
|
|
|
|
PASS=AxedBodedGinger7
|
2024-04-08 17:51:49 +02:00
|
|
|
PORT=28625
|
2019-10-04 17:51:07 +02: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 17:51:49 +02:00
|
|
|
-p 127.0.0.1:${PORT}:9000 \
|
2019-10-04 17:51:07 +02:00
|
|
|
minio/minio server /data
|
|
|
|
|
|
|
|
echo type=s3
|
2020-02-13 11:44:42 +01:00
|
|
|
echo provider=Minio
|
2019-10-04 17:51:07 +02:00
|
|
|
echo access_key_id=$USER
|
|
|
|
echo secret_access_key=$PASS
|
2024-04-08 17:51:49 +02:00
|
|
|
echo endpoint=http://127.0.0.1:${PORT}/
|
|
|
|
echo _connect=127.0.0.1:${PORT}
|
2019-10-04 17:51:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
. $(dirname "$0")/run.bash
|