etcd/tests/functional/scripts/docker-local-tester.sh
Piotr Tabor 69254d8cf8 functional,tests: git mv functional tests/
Modularization: Mechanical move of "functional" directory into tests module using:

% git mv functional tests/
2020-10-07 15:03:51 +02:00

19 lines
414 B
Bash
Executable File

#!/usr/bin/env bash
if ! [[ "${0}" =~ "scripts/docker-local-tester.sh" ]]; then
echo "must be run from functional"
exit 255
fi
if [[ -z "${GO_VERSION}" ]]; then
GO_VERSION=1.14.3
fi
echo "Running with GO_VERSION:" ${GO_VERSION}
docker run \
--rm \
--net=host \
--name tester \
gcr.io/etcd-development/etcd-functional:go${GO_VERSION} \
/bin/bash -c "./bin/etcd-tester --config ./functional.yaml"