etcd/functional/scripts/docker-local-tester.sh
D Tripp 45d26bcc60 3.4: Bump Go version to 1.21.12: GO-2024-2963 fix.
Based on commit 74533d94b2ce4cb5bde19c02a652ade7fa9dc5d4 and https://github.com/etcd-io/etcd/pull/18130/

Signed-off-by: D Tripp <38776199+thedtripp@users.noreply.github.com>
2024-07-03 05:31:08 +00: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.21.12
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"