mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 09:04:52 +01:00
aed77a8fb2
The latter is more portable, while the former only works on systems where /bin/bash exists (or is symlinked appropriately).
24 lines
422 B
Bash
Executable File
24 lines
422 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
NAME=swift-aio
|
|
PORT=28628
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
start() {
|
|
docker run --rm -d --name ${NAME} \
|
|
-p 127.0.0.1:${PORT}:8080 \
|
|
bouncestorage/swift-aio
|
|
|
|
echo type=swift
|
|
echo env_auth=false
|
|
echo user=test:tester
|
|
echo key=testing
|
|
echo auth=http://127.0.0.1:${PORT}/auth/v1.0
|
|
echo _connect=127.0.0.1:${PORT}
|
|
}
|
|
|
|
. $(dirname "$0")/run.bash
|