github.com/xhghs/rclone@v1.51.1-0.20200430155106-e186a28cced8/fstest/testserver/init.d/TestSwiftAIO (about)

     1  #!/bin/bash
     2  
     3  set -e
     4  
     5  NAME=swift-aio
     6  
     7  . $(dirname "$0")/docker.bash
     8  
     9  start() {
    10      docker run --rm -d --name ${NAME} \
    11             bouncestorage/swift-aio
    12      
    13      echo type=swift
    14      echo env_auth=false
    15      echo user=test:tester
    16      echo key=testing
    17      echo auth=http://$(docker_ip):8080/auth/v1.0
    18      echo _connect=$(docker_ip):8080
    19  }
    20  
    21  . $(dirname "$0")/run.bash