|
@@ -24,6 +24,9 @@ create_dirs() {
|
|
|
###############################################################################
|
|
###############################################################################
|
|
|
clone_proj() {
|
|
clone_proj() {
|
|
|
cd ${proj_dir}
|
|
cd ${proj_dir}
|
|
|
|
|
+ git clone --depth=1 https://github.com/reghao/ik-analyzer-solr.git
|
|
|
|
|
+ git clone --depth=1 https://github.com/reghao/jieba-analysis.git
|
|
|
|
|
+
|
|
|
git clone --depth=1 https://git.reghao.cn/reghao/jutil
|
|
git clone --depth=1 https://git.reghao.cn/reghao/jutil
|
|
|
git clone --depth=1 https://git.reghao.cn/reghao/tnb
|
|
git clone --depth=1 https://git.reghao.cn/reghao/tnb
|
|
|
git clone --depth=1 https://git.reghao.cn/reghao/tnbapp
|
|
git clone --depth=1 https://git.reghao.cn/reghao/tnbapp
|
|
@@ -35,6 +38,12 @@ clone_proj() {
|
|
|
build_dependencies() {
|
|
build_dependencies() {
|
|
|
cd ${proj_dir}/jutil
|
|
cd ${proj_dir}/jutil
|
|
|
mvn clean install -Dmaven.test.skip
|
|
mvn clean install -Dmaven.test.skip
|
|
|
|
|
+
|
|
|
|
|
+ cd ${proj_dir}/ik-analyzer-solr
|
|
|
|
|
+ mvn clean install -Dmaven.test.skip
|
|
|
|
|
+
|
|
|
|
|
+ cd ${proj_dir}/jieba-analysis
|
|
|
|
|
+ mvn clean install -Dmaven.test.skip
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
###############################################################################
|
|
###############################################################################
|
|
@@ -121,19 +130,19 @@ build_image() {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
echo "创建 proj 目录和 bin 目录..."
|
|
echo "创建 proj 目录和 bin 目录..."
|
|
|
-#create_dirs
|
|
|
|
|
|
|
+create_dirs
|
|
|
|
|
|
|
|
echo "clone 项目..."
|
|
echo "clone 项目..."
|
|
|
-#clone_proj
|
|
|
|
|
|
|
+clone_proj
|
|
|
|
|
|
|
|
echo "构建依赖..."
|
|
echo "构建依赖..."
|
|
|
-#build_dependencies
|
|
|
|
|
|
|
+build_dependencies
|
|
|
|
|
|
|
|
echo "构建后端应用..."
|
|
echo "构建后端应用..."
|
|
|
-# build_backend
|
|
|
|
|
|
|
+build_backend
|
|
|
|
|
|
|
|
echo "构建前端应用..."
|
|
echo "构建前端应用..."
|
|
|
-# build_front
|
|
|
|
|
|
|
+build_front
|
|
|
|
|
|
|
|
echo "构建 docker 镜像..."
|
|
echo "构建 docker 镜像..."
|
|
|
build_image
|
|
build_image
|