kubeterracloud/run/check-versions

26 lines
532 B
Bash
Executable File

#!/usr/bin/env bash
BIN_VER_PAIRS=(
"terraform@--version"
"kubectl@version"
"gcloud@--version"
"aws@--version"
"helm@version"
"python@--version"
"jq@--version"
"curl@--version"
"git@--version"
"openssl@version"
)
time {
for bin_ver in "${BIN_VER_PAIRS[@]}"; do
bin="${bin_ver%%@*}"
ver="${bin_ver##*@}"
echo -n "Version report from ${bin}: "
docker run --rm \
--interactive --tty "hub.ici.de.com/kubeterracloud:latest" ${bin} ${ver}\
| awk 'NR!=1 { $0="\t"$0 }{ print }'
done
}