#!/usr/bin/env sh set -u cd "$(dirname "$0")" [ -f .env ] && { set -a; . ./.env; set +a; } echo '== Host ==' uname -a || true command -v lscpu >/dev/null 2>&1 && lscpu || true echo echo '== CPU flags/features ==' if [ -r /proc/cpuinfo ]; then case "$(uname -m 2>/dev/null)" in x86_64|amd64) grep -m1 -E '^flags[[:space:]]*:' /proc/cpuinfo || true ;; aarch64|arm64) grep -m1 -E '^Features[[:space:]]*:' /proc/cpuinfo || true ;; esac fi echo echo '== Docker ==' docker version 2>/dev/null || true docker info --format 'Architecture={{.Architecture}} OS={{.OSType}} Kernel={{.KernelVersion}}' 2>/dev/null || true echo echo '== Published ports ==' docker ps --format 'table {{.Names}}\t{{.Ports}}' || true echo echo '== ClickHouse direct CPU probe ==' image="${CLICKHOUSE_IMAGE:-clickhouse/clickhouse-server:26.6.2.81}" echo "Image: $image" set +e docker run --rm --entrypoint clickhouse "$image" local --query 'SELECT version(), 1' rc=$? set -e echo "Exit-Code: $rc" [ "$rc" -eq 132 ] && echo 'Exit 132 = SIGILL / Illegal instruction: CPU-Instruktionssatz passt nicht zum Binary.'