fix: 移除硬编码路径,全部从git仓库克隆 — 修复config.json DB凭证和路径,build.sh克隆pipeline-sdlc/showcase

This commit is contained in:
yumoqing 2026-07-07 21:46:39 +08:00
parent 216f2f9f59
commit 9c29e367d6
2 changed files with 27 additions and 12 deletions

View File

@ -37,8 +37,22 @@ if [ -d bricks/bricks ]; then
fi
cd "$cdir"
# 4. Install business modules
for mod in pipeline_core pipeline_ops pipeline_dist; do
# 4. Clone pipeline-sdlc and showcase
for m in pipeline-sdlc showcase; do
echo "clone $m ..."
cd "$cdir/pkgs"
if [ ! -d "$m" ]; then
git clone https://git.opencomputing.cn/yumoqing/$m || echo "SKIP: $m clone failed"
fi
# pipeline-sdlc goes to root (same as other business modules)
if [ "$m" = "pipeline-sdlc" ] && [ ! -d "$cdir/pipeline-sdlc" ]; then
ln -sf "$cdir/pkgs/pipeline-sdlc" "$cdir/pipeline-sdlc"
fi
cd "$cdir"
done
# 5. Install business modules
for mod in pipeline_core pipeline_ops pipeline_dist pipeline-sdlc; do
echo "install $mod ..."
cd "$cdir/$mod"
"$cdir/py3/bin/pip" install . 2>&1 | tail -1
@ -59,14 +73,15 @@ for mod in pipeline_core pipeline_ops pipeline_dist; do
cd "$cdir"
done
# 4b. Install showcase module (symlinked from repos)
if [ -d "$cdir/showcase" ] || [ -L "$cdir/showcase" ]; then
# 5b. Install showcase module
if [ -d "$cdir/pkgs/showcase" ]; then
echo "install showcase ..."
cd "$cdir/pkgs/showcase"
"$cdir/py3/bin/pip" install . 2>&1 | tail -1
cd "$cdir"
"$cdir/py3/bin/pip" install -e /home/hermesai/repos/showcase 2>&1 | tail -1
fi
# 5. Create runtime dirs
# 6. Create runtime dirs
mkdir -p "$cdir/logs" "$cdir/files"
chmod +x "$cdir/start.sh" "$cdir/stop.sh"

View File

@ -12,9 +12,9 @@
"kwargs": {
"host": "127.0.0.1",
"port": 3306,
"user": "hermes",
"password": "hTk87ujLrxZeoMcD2Rlwbg==",
"db": "pipeline",
"user": "test",
"password": "QUZVcXg5V1p1STMybG5Ia0cn3HIUaqU=",
"db": "sage",
"charset": "utf8mb4"
}
},
@ -23,8 +23,8 @@
"kwargs": {
"host": "127.0.0.1",
"port": 3306,
"user": "hermes",
"password": "hTk87ujLrxZeoMcD2Rlwbg==",
"user": "test",
"password": "QUZVcXg5V1p1STMybG5Ia0cn3HIUaqU=",
"db": "sage",
"charset": "utf8mb4"
}
@ -50,7 +50,7 @@
"/appbase"
],
[
"/home/hermesai/repos/pipeline-sdlc/wwwroot",
"$[workdir]$/pkgs/pipeline-sdlc/wwwroot",
"/pipeline_sdlc"
]
],