#!/bin/bash # One container: the unmodified vendor shim on loopback, then the front. If either dies, the container exits and # Docker restarts it (restart: unless-stopped). Both inherit the container's whole environment, so the shim's own # settings (SHIM_*, e.g. SHIM_NOUL_FLOOR, and LIGHTNING_*, e.g. LIGHTNING_IMAGE_URLS=off) set in compose reach it. set -eu python3 /model/h2o_lightning_shim.py --config /model/serve_config.json --vllm "$SHIM_VLLM" \ --host 127.0.0.1 --port "$SHIM_PORT" & SHIM=$! python3 /front/front.py & FRONT=$! wait -n "$SHIM" "$FRONT" 2>/dev/null || true kill "$SHIM" "$FRONT" 2>/dev/null || true exit 1