Files
sh/run_openclaw_manager_matrix.sh
openclaw 0784a11c19
Some checks failed
Weekly Translation Workflow / translate (push) Has been cancelled
init: fork of kejilion/sh with certbot host-network fix
- Replace 'docker run -p 80:80' with '--network host' for certbot standalone HTTP-01 to avoid timeout in environments where Docker NAT port-publish breaks LE inbound traffic but host port 80 is reachable.
- Applies to kejilion.sh (all locale variants) and auto_cert_renewal.sh.
- README install command points to this Gitea mirror.
2026-05-18 17:06:42 +08:00

39 lines
828 B
Bash
Executable File

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")"
IMAGES=(
"debian:12"
"debian:13"
"ubuntu:22.04"
"ubuntu:24.04"
"rockylinux:9"
"almalinux:9"
"fedora:41"
)
install_cmd() {
case "$1" in
debian:*|ubuntu:*)
echo 'apt-get update -y >/dev/null && DEBIAN_FRONTEND=noninteractive apt-get install -y bash jq grep sed coreutils >/dev/null'
;;
rockylinux:*|almalinux:*|fedora:*)
echo 'dnf install -y bash jq grep sed coreutils >/dev/null'
;;
*)
return 1
;;
esac
}
for img in "${IMAGES[@]}"; do
echo "===== $img ====="
cmd=$(install_cmd "$img")
if docker run --rm -v "$PWD":/src -w /src "$img" bash -lc "$cmd && bash -n kejilion.sh && ./tests_openclaw_manager_smoke.sh"; then
echo "RESULT $img OK"
else
echo "RESULT $img FAIL"
fi
echo
done