2024-05-24 18:01:58 +08:00
|
|
|
#!/usr/bin/env bash
|
2019-10-04 23:51:07 +08:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
NAME=swift-aio
|
2024-04-08 23:51:49 +08:00
|
|
|
PORT=28628
|
2019-10-04 23:51:07 +08:00
|
|
|
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
|
|
|
|
start() {
|
|
|
|
docker run --rm -d --name ${NAME} \
|
2024-04-08 23:51:49 +08:00
|
|
|
-p 127.0.0.1:${PORT}:8080 \
|
2019-10-04 23:51:07 +08:00
|
|
|
bouncestorage/swift-aio
|
|
|
|
|
|
|
|
echo type=swift
|
|
|
|
echo env_auth=false
|
|
|
|
echo user=test:tester
|
|
|
|
echo key=testing
|
2024-04-08 23:51:49 +08:00
|
|
|
echo auth=http://127.0.0.1:${PORT}/auth/v1.0
|
|
|
|
echo _connect=127.0.0.1:${PORT}
|
2019-10-04 23:51:07 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
. $(dirname "$0")/run.bash
|