aboutsummaryrefslogtreecommitdiff
path: root/testing/start-saio.sh
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2018-01-31 22:21:00 +0100
committerStefan Majewsky <majewsky@gmx.net>2018-01-31 22:21:00 +0100
commitcd525f8ab11068a16b93035599887d8a8e4146d6 (patch)
treef87617dab51afc193509001841d33f315f793476 /testing/start-saio.sh
parent447267b24f921f9640eea14a59997fda37e271b0 (diff)
downloadgo-schwift-cd525f8ab11068a16b93035599887d8a8e4146d6.tar.gz
add testing scripts based on github.com/bouncestorage/docker-swift
Diffstat (limited to 'testing/start-saio.sh')
-rwxr-xr-xtesting/start-saio.sh7
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