2024-05-24 18:01:58 +08:00
|
|
|
#!/usr/bin/env bash
|
2020-02-13 18:55:05 +08:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
NAME=minio-edge
|
|
|
|
USER=rclone
|
|
|
|
PASS=DeniseOxygenEiffel4
|
2024-04-08 23:51:49 +08:00
|
|
|
PORT=28626
|
2020-02-13 18:55:05 +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 \
|
2020-02-13 18:55:05 +08:00
|
|
|
minio/minio:edge server /data
|
|
|
|
|
|
|
|
echo type=s3
|
|
|
|
echo provider=Minio
|
|
|
|
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}
|
2020-02-13 18:55:05 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
. $(dirname "$0")/run.bash
|