fix: 移除硬编码路径,全部从git仓库克隆 — 修复config.json DB凭证和路径,build.sh克隆pipeline-sdlc/showcase
This commit is contained in:
parent
216f2f9f59
commit
9c29e367d6
27
build.sh
27
build.sh
@ -37,8 +37,22 @@ if [ -d bricks/bricks ]; then
|
|||||||
fi
|
fi
|
||||||
cd "$cdir"
|
cd "$cdir"
|
||||||
|
|
||||||
# 4. Install business modules
|
# 4. Clone pipeline-sdlc and showcase
|
||||||
for mod in pipeline_core pipeline_ops pipeline_dist; do
|
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 ..."
|
echo "install $mod ..."
|
||||||
cd "$cdir/$mod"
|
cd "$cdir/$mod"
|
||||||
"$cdir/py3/bin/pip" install . 2>&1 | tail -1
|
"$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"
|
cd "$cdir"
|
||||||
done
|
done
|
||||||
|
|
||||||
# 4b. Install showcase module (symlinked from repos)
|
# 5b. Install showcase module
|
||||||
if [ -d "$cdir/showcase" ] || [ -L "$cdir/showcase" ]; then
|
if [ -d "$cdir/pkgs/showcase" ]; then
|
||||||
echo "install showcase ..."
|
echo "install showcase ..."
|
||||||
|
cd "$cdir/pkgs/showcase"
|
||||||
|
"$cdir/py3/bin/pip" install . 2>&1 | tail -1
|
||||||
cd "$cdir"
|
cd "$cdir"
|
||||||
"$cdir/py3/bin/pip" install -e /home/hermesai/repos/showcase 2>&1 | tail -1
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 5. Create runtime dirs
|
# 6. Create runtime dirs
|
||||||
mkdir -p "$cdir/logs" "$cdir/files"
|
mkdir -p "$cdir/logs" "$cdir/files"
|
||||||
|
|
||||||
chmod +x "$cdir/start.sh" "$cdir/stop.sh"
|
chmod +x "$cdir/start.sh" "$cdir/stop.sh"
|
||||||
|
|||||||
@ -12,9 +12,9 @@
|
|||||||
"kwargs": {
|
"kwargs": {
|
||||||
"host": "127.0.0.1",
|
"host": "127.0.0.1",
|
||||||
"port": 3306,
|
"port": 3306,
|
||||||
"user": "hermes",
|
"user": "test",
|
||||||
"password": "hTk87ujLrxZeoMcD2Rlwbg==",
|
"password": "QUZVcXg5V1p1STMybG5Ia0cn3HIUaqU=",
|
||||||
"db": "pipeline",
|
"db": "sage",
|
||||||
"charset": "utf8mb4"
|
"charset": "utf8mb4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -23,8 +23,8 @@
|
|||||||
"kwargs": {
|
"kwargs": {
|
||||||
"host": "127.0.0.1",
|
"host": "127.0.0.1",
|
||||||
"port": 3306,
|
"port": 3306,
|
||||||
"user": "hermes",
|
"user": "test",
|
||||||
"password": "hTk87ujLrxZeoMcD2Rlwbg==",
|
"password": "QUZVcXg5V1p1STMybG5Ia0cn3HIUaqU=",
|
||||||
"db": "sage",
|
"db": "sage",
|
||||||
"charset": "utf8mb4"
|
"charset": "utf8mb4"
|
||||||
}
|
}
|
||||||
@ -50,7 +50,7 @@
|
|||||||
"/appbase"
|
"/appbase"
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"/home/hermesai/repos/pipeline-sdlc/wwwroot",
|
"$[workdir]$/pkgs/pipeline-sdlc/wwwroot",
|
||||||
"/pipeline_sdlc"
|
"/pipeline_sdlc"
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user