docker-local-tester.sh 414 B

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