Creator App Tests / PR Spam Gate (push) Skipped
Frontend Tests / PR Spam Gate (push) Skipped
NPM Format (website & console) / PR Spam Gate (push) Skipped
Pre-commit Checks / PR Spam Gate (push) Skipped
QwenPaw Creator Plugin Release / check-version (push) Canceled after 0s
QwenPaw Creator Plugin Release / upload-oss (push) Canceled after 0s
Tests / PR Spam Gate (push) Skipped
CodeQL / CodeQL (python) (push) Canceled after 0s
CodeQL / CodeQL (typescript) (push) Canceled after 0s
Creator App Tests / Creator Backend Tests (push) Canceled after 0s
Creator App Tests / Creator UI Build & Tests (push) Canceled after 0s
E2E Smoke Tests / Playwright UI Smoke (push) Canceled after 0s
Frontend Tests / Detect console changes (push) Canceled after 0s
NPM Format (website & console) / website format check (push) Canceled after 0s
NPM Format (website & console) / console format check (push) Canceled after 0s
Pre-commit Checks / Pre-commit (push) Canceled after 0s
QwenPaw Data Plugin Release / check-version (push) Canceled after 0s
Tests / Detect code changes (push) Canceled after 0s
Frontend Tests / Vitest Unit Tests (push) Canceled after 0s
Frontend Tests / Frontend Summary (push) Canceled after 0s
QwenPaw Data Plugin Release / upload-oss (push) Canceled after 0s
Tests / Maintainer Approval (push) Canceled after 0s
Tests / Unit Tests - py3.11 - macos-latest (push) Canceled after 0s
Tests / Unit Tests - py3.11 - ubuntu-latest (push) Canceled after 0s
Tests / Unit Tests - py3.13 - ubuntu-latest (push) Canceled after 0s
Tests / Unit Tests - py3.11 - windows-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - macos-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - ubuntu-latest (push) Canceled after 0s
Tests / Contract Tests - py3.13 - ubuntu-latest (push) Canceled after 0s
Tests / Contract Tests - py3.11 - windows-latest (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - macos-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - fallback (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - ubuntu-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.13 - ubuntu-latest - p2 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p0 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p1 (push) Canceled after 0s
Tests / Integrated Tests - py3.11 - windows-latest - p2 (push) Canceled after 0s
Tests / Coverage Report (push) Canceled after 0s
Tests / Test Summary (push) Canceled after 0s
41 lines
1.7 KiB
Bash
Executable File
41 lines
1.7 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Build Docker image (includes console frontend build in multi-stage).
|
|
# Run from repo root: bash scripts/docker_build.sh [IMAGE_TAG] [EXTRA_ARGS...]
|
|
# Example: bash scripts/docker_build.sh qwenpaw:latest
|
|
# bash scripts/docker_build.sh myreg/qwenpaw:v1 --no-cache
|
|
#
|
|
# By default the Docker image excludes imessage (macOS-only).
|
|
# Override via:
|
|
# QWENPAW_DISABLED_CHANNELS=imessage,voice bash scripts/docker_build.sh
|
|
# QWENPAW_ENABLED_CHANNELS=discord,telegram bash scripts/docker_build.sh
|
|
set -e
|
|
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$REPO_ROOT"
|
|
|
|
DOCKERFILE="${DOCKERFILE:-$REPO_ROOT/deploy/Dockerfile}"
|
|
TAG="${1:-qwenpaw:latest}"
|
|
shift || true
|
|
|
|
# Channels to exclude from the image (default: imessage).
|
|
DISABLED_CHANNELS="${QWENPAW_DISABLED_CHANNELS:-imessage}"
|
|
QWENPAW_VERSION=$(sed -n \
|
|
's/^__version__[[:space:]]*=[[:space:]]*"\([^"]*\)".*/\1/p' \
|
|
src/qwenpaw/__version__.py)
|
|
if [ -z "$QWENPAW_VERSION" ]; then
|
|
echo "[docker_build] Failed to read src/qwenpaw/__version__.py" >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo "[docker_build] Building image: $TAG (Dockerfile: $DOCKERFILE)"
|
|
docker build -f "$DOCKERFILE" \
|
|
--build-arg QWENPAW_DISABLED_CHANNELS="$DISABLED_CHANNELS" \
|
|
--build-arg \
|
|
QWENPAW_MANAGED_RUNTIME_BOUNDARY_VERSION="$QWENPAW_VERSION" \
|
|
${QWENPAW_ENABLED_CHANNELS:+--build-arg QWENPAW_ENABLED_CHANNELS="$QWENPAW_ENABLED_CHANNELS"} \
|
|
-t "$TAG" "$@" .
|
|
echo "[docker_build] Done."
|
|
echo "[docker_build] QwenPaw app port: 8088 (default). Override with -e QWENPAW_PORT=<port>."
|
|
echo "[docker_build] Run: docker run -p 127.0.0.1:8088:8088 $TAG"
|
|
echo "[docker_build] Or: docker run -e QWENPAW_PORT=3000 -p 127.0.0.1:3000:3000 $TAG"
|