go.etcd.io/etcd@v3.3.27+incompatible/functional/scripts/docker-local-tester.sh (about)

     1  #!/usr/bin/env bash
     2  
     3  if ! [[ "${0}" =~ "scripts/docker-local-tester.sh" ]]; then
     4    echo "must be run from functional"
     5    exit 255
     6  fi
     7  
     8  if [[ -z "${GO_VERSION}" ]]; then
     9    GO_VERSION=1.10.1
    10  fi
    11  echo "Running with GO_VERSION:" ${GO_VERSION}
    12  
    13  docker run \
    14    --rm \
    15    --net=host \
    16    --name tester \
    17    gcr.io/etcd-development/etcd-functional-tester:go${GO_VERSION} \
    18    /bin/bash -c "./bin/etcd-tester --config ./functional.yaml"