chore(docker): 使用内部Git服务器

- frappe: https://git.yierp.vip/erp/frappe-v16.git
- yierp: https://git.yierp.vip/erp/yierp-v16.git

避免GitHub连接问题,提高克隆速度
This commit is contained in:
jerron
2026-10-18 09:15:07 +08:00
parent 1357707a3b
commit 10b7d7019b
2 changed files with 7 additions and 8 deletions
+5 -6
View File
@@ -45,8 +45,8 @@ echo "App linked: ${APP_SOURCE} -> ${BENCH_DIR}/apps/${APP_NAME}/${APP_NAME}"
if [ ! -d "${BENCH_DIR}/apps/frappe" ]; then
echo "Frappe not found in bench apps. Initializing bench..."
# Initialize bench with frappe
echo "Initializing bench with frappe..."
# Initialize bench with frappe from internal Git server
echo "Initializing bench with frappe from internal Git server..."
cd "$(dirname "${BENCH_DIR}")"
# Remove incomplete bench if exists
@@ -54,16 +54,15 @@ if [ ! -d "${BENCH_DIR}/apps/frappe" ]; then
rm -rf "${BENCH_DIR}"
fi
# Try GitHub first, fallback to Gitee if available
FRAPPE_REPO="https://github.com/frappe/frappe.git"
# Use internal Git server
FRAPPE_REPO="https://git.yierp.vip/erp/frappe-v16.git"
bench init \
--skip-redis-config-generation \
--frappe-branch version-16 \
--frappe-path "${FRAPPE_REPO}" \
"${BENCH_DIR}" || {
echo "Failed to initialize bench from GitHub"
echo "Note: If you're in China, consider manually cloning from Gitee mirror"
echo "Failed to initialize bench from ${FRAPPE_REPO}"
exit 1
}
echo "Bench initialized successfully"
+2 -2
View File
@@ -89,6 +89,6 @@ docstring-code-format = true
[project.urls]
Homepage = "https://frappe.io/yierp"
Repository = "https://gitee.com/yierp/yierp.git"
Repository = "https://git.yierp.vip/erp/yierp-v16.git"
Documentation = "https://docs.frappe.io/yierp"
"Bug Reports" = "https://gitee.com/yierp/yierp/issues"
"Bug Reports" = "https://git.yierp.vip/erp/yierp-v16/issues"