etcd/functional/scripts/docker-local-tester.sh
Chun-Hung Tseng 5acca2781e
Bump go-version to 1.21.9 for release-3.4 due to CVE-2023-45288
Reference:
- PR #17703

Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
2024-04-04 10:55:07 +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.21.9
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"