refac: reorganize scripts and ci workflows

This commit is contained in:
Timothy Jaeryang Baek
2026-05-12 03:26:18 +09:00
parent 90a02e623f
commit 070ab26501
22 changed files with 903 additions and 1523 deletions
Executable
+32
View File
@@ -0,0 +1,32 @@
#!/usr/bin/env bash
set -euo pipefail
# ---------------------------------------------------------------------------
# Build and run the Open WebUI Docker container locally.
# ---------------------------------------------------------------------------
readonly IMAGE="open-webui"
readonly CONTAINER="open-webui"
readonly HOST_PORT="${OPEN_WEBUI_PORT:-3000}"
readonly CONTAINER_PORT=8080
echo "Building ${IMAGE} image..."
docker build -t "$IMAGE" .
echo "Stopping any existing ${CONTAINER} container..."
docker stop "$CONTAINER" 2>/dev/null || true
docker rm "$CONTAINER" 2>/dev/null || true
echo "Starting ${CONTAINER}..."
docker run -d \
-p "${HOST_PORT}:${CONTAINER_PORT}" \
--add-host=host.docker.internal:host-gateway \
-v "${IMAGE}:/app/backend/data" \
--name "$CONTAINER" \
--restart always \
"$IMAGE"
echo "Cleaning up dangling images..."
docker image prune -f
echo "Open WebUI is running at http://localhost:${HOST_PORT}"