This commit is contained in:
2026-06-10 15:14:00 +08:00
parent 5f189660c3
commit 177c508da0
3 changed files with 32 additions and 7 deletions
+23
View File
@@ -0,0 +1,23 @@
#!/bin/bash
# =============================================================================
# MinerU ROCm 统一入口 — 启动时执行补丁,然后启动指定服务
# =============================================================================
set -e
VENV=/opt/mineru_venv
SCRIPTS_DIR=/opt/scripts
echo "[entrypoint] running patches..."
# vllm 平台补丁
if [ -f ${SCRIPTS_DIR}/patch_vllm_platform.py ]; then
${VENV}/bin/python ${SCRIPTS_DIR}/patch_vllm_platform.py || echo "[entrypoint] patch_vllm_platform.py failed (non-fatal)"
fi
# MinerU 推理补丁
if [ -f ${SCRIPTS_DIR}/apply_mineru_patches.py ]; then
${VENV}/bin/python ${SCRIPTS_DIR}/apply_mineru_patches.py || echo "[entrypoint] apply_mineru_patches.py failed (non-fatal)"
fi
echo "[entrypoint] starting: $*"
exec "$@"