fix(scripts): select container runtime for telemetry (#3727)

# What does this PR do?
script runs with either docker or podman

## Test Plan
passes when run
This commit is contained in:
Emilio Garcia 2025-10-07 17:59:53 -04:00 committed by GitHub
parent c2d97a9db9
commit bc7d4b423b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -16,10 +16,19 @@
set -Eeuo pipefail set -Eeuo pipefail
CONTAINER_RUNTIME=${CONTAINER_RUNTIME:-docker} if command -v podman &> /dev/null; then
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" CONTAINER_RUNTIME="podman"
elif command -v docker &> /dev/null; then
CONTAINER_RUNTIME="docker"
else
echo "🚨 Neither Podman nor Docker could be found"
echo "Install Docker: https://docs.docker.com/get-docker/ or Podman: https://podman.io/getting-started/installation"
exit 1
fi
echo "🚀 Setting up telemetry stack for Llama Stack using Podman..." echo "🚀 Setting up telemetry stack for Llama Stack using $CONTAINER_RUNTIME..."
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if ! command -v "$CONTAINER_RUNTIME" &> /dev/null; then if ! command -v "$CONTAINER_RUNTIME" &> /dev/null; then
echo "🚨 $CONTAINER_RUNTIME could not be found" echo "🚨 $CONTAINER_RUNTIME could not be found"