diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2018-01-31 22:21:00 +0100 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2018-01-31 22:21:00 +0100 |
| commit | cd525f8ab11068a16b93035599887d8a8e4146d6 (patch) | |
| tree | f87617dab51afc193509001841d33f315f793476 /testing/start-saio.sh | |
| parent | 447267b24f921f9640eea14a59997fda37e271b0 (diff) | |
| download | go-schwift-cd525f8ab11068a16b93035599887d8a8e4146d6.tar.gz | |
add testing scripts based on github.com/bouncestorage/docker-swift
Diffstat (limited to 'testing/start-saio.sh')
| -rwxr-xr-x | testing/start-saio.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/start-saio.sh b/testing/start-saio.sh new file mode 100755 index 0000000..81cf845 --- /dev/null +++ b/testing/start-saio.sh @@ -0,0 +1,7 @@ +#!/bin/sh +if docker inspect schwift-testing &>/dev/null; then + echo 'Already running.' +else + # The `readlink -f` converts the path to repo/testing/data to an absolute path. + exec docker run --name schwift-testing -P -v "$(readlink -f "$(dirname $0)")/data:/swift/nodes" -t bouncestorage/swift-aio +fi |
