mirror of
https://github.com/rclone/rclone.git
synced 2024-12-21 11:06:55 +08:00
aed77a8fb2
The latter is more portable, while the former only works on systems where /bin/bash exists (or is symlinked appropriately).
28 lines
553 B
Bash
Executable File
28 lines
553 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
NAME=minio-edge
|
|
USER=rclone
|
|
PASS=DeniseOxygenEiffel4
|
|
PORT=28626
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
start() {
|
|
docker run --rm -d --name $NAME \
|
|
-e "MINIO_ACCESS_KEY=$USER" \
|
|
-e "MINIO_SECRET_KEY=$PASS" \
|
|
-p 127.0.0.1:${PORT}:9000 \
|
|
minio/minio:edge server /data
|
|
|
|
echo type=s3
|
|
echo provider=Minio
|
|
echo access_key_id=$USER
|
|
echo secret_access_key=$PASS
|
|
echo endpoint=http://127.0.0.1:${PORT}/
|
|
echo _connect=127.0.0.1:${PORT}
|
|
}
|
|
|
|
. $(dirname "$0")/run.bash
|