github.com/lfch/etcd-io/tests/v3@v3.0.0-20221004140520-eac99acd3e9d/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.14.3 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:go${GO_VERSION} \ 18 /bin/bash -c "./bin/etcd-tester --config ./functional.yaml"