- _batch_sizer.py: compute per_batch_budget from actual available_input_budget (context_window - max_output_tokens) instead of sum of first N rows - _batch_sizer.py: cap max_rows_hard_cap with job.batch_size (user config) - _token_budget.py: add available_input_budget and max_output_tokens to return - preview.py: validate required config fields before preview - requirements-docker.txt: add playwright pip package (~5 MB) - backend.entrypoint.sh: lazy playwright install chromium on first start - build.sh: switch tar to tar.xz (-T0 -9), 5.5x smaller bundles - README.md: add offline bundle deployment instructions - playwright.config.js: add testMatch for *.e2e.js files - frontend: preview tab config validation, i18n keys, translationRun store
23 lines
638 B
Bash
Executable File
23 lines
638 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# [DEF:BuildOfflineDockerBundle:Module]
|
|
# @PURPOSE: Thin wrapper — delegates to ./build.sh bundle (.tar.xz output)
|
|
# @COMPLEXITY: 1
|
|
# @RATIONALE: Unified into build.sh to avoid confusion; kept for backward compat.
|
|
# [/DEF:BuildOfflineDockerBundle:Module]
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
|
|
|
TAG="${1:-}"
|
|
|
|
if [[ -z "$TAG" ]]; then
|
|
echo "Usage: $0 <tag>"
|
|
echo "Delegates to: ./build.sh bundle <tag>"
|
|
exit 1
|
|
fi
|
|
|
|
echo "[offline-bundle] Delegating to ./build.sh bundle $TAG..."
|
|
exec "${PROJECT_ROOT}/build.sh" bundle "$TAG"
|