fix: use LLMUX_SRC env var for Dockerfile path in pod creation script
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -32,10 +32,16 @@ fi
|
|||||||
|
|
||||||
mkdir -p "$USER_SYSTEMD_DIR"
|
mkdir -p "$USER_SYSTEMD_DIR"
|
||||||
|
|
||||||
|
LLMUX_SRC="${LLMUX_SRC:-/home/tlg/swd/kischdle/llmux}"
|
||||||
|
|
||||||
if ! podman image exists "$IMAGE"; then
|
if ! podman image exists "$IMAGE"; then
|
||||||
echo "Building container image..."
|
echo "Building container image from $LLMUX_SRC ..."
|
||||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
if [ ! -f "$LLMUX_SRC/Dockerfile" ]; then
|
||||||
podman build -t llmux:latest -f "$SCRIPT_DIR/../Dockerfile" "$SCRIPT_DIR/.."
|
echo "ERROR: Dockerfile not found at $LLMUX_SRC/Dockerfile"
|
||||||
|
echo "Set LLMUX_SRC to the llmux source directory."
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
podman build -t llmux:latest -f "$LLMUX_SRC/Dockerfile" "$LLMUX_SRC"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
podman pod exists "$POD_NAME" && podman pod stop "$POD_NAME" 2>/dev/null || true
|
podman pod exists "$POD_NAME" && podman pod stop "$POD_NAME" 2>/dev/null || true
|
||||||
|
|||||||
Reference in New Issue
Block a user