@@ -12,7 +12,6 @@ CLUSTER_NAME="compass-poc"
1212KSERVE_VERSION=" v0.13.0"
1313CERT_MANAGER_VERSION=" v1.14.4"
1414CLUSTER_CONFIG=" config/kind-cluster.yaml"
15- CONTAINER_TOOL=$( if command -v podman > /dev/null 2>&1 ; then echo podman; elif command -v docker > /dev/null 2>&1 ; then echo docker; else echo " " ; fi)
1615
1716# Colors for output
1817RED=' \033[0;31m'
@@ -50,20 +49,12 @@ check_prerequisites() {
5049
5150 local missing_deps=()
5251
53- # Check Docker/Podman
54- if command -v docker & > /dev/null; then
55- if ! docker info & > /dev/null; then
56- print_error " Docker is installed but not running. Please start Docker Desktop."
57- exit 1
58- fi
59- elif command -v podman & > /dev/null; then
60- if ! podman info & > /dev/null; then
61- print_error " Podman is installed but not running. Please start the Podman service."
62- exit 1
63- fi
64- print_warning " Podman requires rootless access to port 80."
65- else
66- missing_deps+=(" docker or podman" )
52+ # Check Docker
53+ if ! command -v docker & > /dev/null; then
54+ missing_deps+=(" docker" )
55+ elif ! docker info & > /dev/null; then
56+ print_error " Docker is installed but not running. Please start Docker Desktop."
57+ exit 1
6758 fi
6859
6960 # Check kubectl
@@ -163,20 +154,12 @@ start_cluster() {
163154
164155 # Load vLLM simulator image into cluster
165156 print_step " Loading vLLM simulator image into cluster..."
166- if $CONTAINER_TOOL images vllm-simulator:latest --format " {{.Repository}}" | grep -q vllm-simulator; then
167- if [ $CONTAINER_TOOL = " docker" ]; then
168- kind load docker-image vllm-simulator:latest --name " $CLUSTER_NAME "
169- elif [ $CONTAINER_TOOL = " podman" ]; then
170- podman save vllm-simulator:latest -o vllm-simulator.tar
171- kind load image-archive vllm-simulator.tar --name " $CLUSTER_NAME "
172- rm vllm-simulator.tar
173- else
174- print_error " Invalid CONTAINER_TOOL: $CONTAINER_TOOL "
175- fi
176- print_success " vLLM simulator image loaded"
157+ if docker images vllm-simulator:latest --format " {{.Repository}}" | grep -q vllm-simulator; then
158+ kind load docker-image vllm-simulator:latest --name " $CLUSTER_NAME "
159+ print_success " vLLM simulator image loaded"
177160 else
178161 print_warning " vLLM simulator image not found locally - skipping"
179- echo " Build the simulator: cd simulator && $CONTAINER_TOOL build -t vllm-simulator:latest ."
162+ echo " Build the simulator: cd simulator && docker build -t vllm-simulator:latest ."
180163 fi
181164
182165 echo " "
0 commit comments