etcd/functional/scripts/docker-local-tester.sh
Lan Liang 5150b4d5a1 Update go version to 1.21.8 for build.
Signed-off-by: Lan Liang <gcslyp@gmail.com>
2024-03-06 13:31:26 +00: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.21.8
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"