etcd/functional/scripts/docker-local-tester.sh
Lili Cosic 5890bc8bd6 .travis,Makefile,functional: Bump go 1.12 version to v1.12.17
This version was already used to build the release v3.4.15.
2021-04-20 14:00:44 +02:00

19 lines
415 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.12.17
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"