You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
highwaysass/docker/copy.sh

64 lines
1.7 KiB
Bash

#!/bin/sh
# 复制项目的文件到对应docker路径便于一键生成镜像。
usage() {
echo "Usage: sh copy.sh"
exit 1
}
# copy sql
echo "begin copy sql "
cp ../sql/ry_20230223.sql ./mysql/db
cp ../sql/ry_config_20220929.sql ./mysql/db
# copy html
echo "begin copy html "
cp -r ../ruoyi-ui/dist/** ./nginx/html/dist
# copy jar
echo "begin copy ruoyi-gateway "
cp ../ruoyi-gateway/target/ruoyi-gateway.jar ./ruoyi/gateway/jar
echo "begin copy ruoyi-auth "
cp ../ruoyi-auth/target/ruoyi-auth.jar ./ruoyi/auth/jar
echo "begin copy ruoyi-visual "
cp ../ruoyi-visual/ruoyi-monitor/target/ruoyi-visual-monitor.jar ./ruoyi/visual/monitor/jar
echo "begin copy ruoyi-modules-system "
cp ../ruoyi-modules/ruoyi-system/target/ruoyi-modules-system.jar ./ruoyi/modules/system/jar
echo "begin copy ruoyi-modules-file "
cp ../ruoyi-modules/ruoyi-file/target/ruoyi-modules-file.jar ./ruoyi/modules/file/jar
echo "begin copy ruoyi-modules-job "
cp ../ruoyi-modules/ruoyi-job/target/ruoyi-modules-job.jar ./ruoyi/modules/job/jar
echo "begin copy ruoyi-modules-basic "
cp ../ruoyi-modules/hw-basic/target/ruoyi-modules-basic.jar ./ruoyi/modules/basic/jar
echo "begin copy ruoyi-modules-business "
cp ../ruoyi-modules/hw-business/target/ruoyi-modules-business.jar ./ruoyi/modules/business/jar
echo "begin copy ruoyi-modules-dataprocess "
cp ../ruoyi-modules/hw-data-process/target/ruoyi-modules-dataprocess.jar ./ruoyi/modules/dataprocess/jar
echo "begin copy ruoyi-modules-mqttbroker"
cp ../ruoyi-modules/hw-mqtt-broker/target/ruoyi-modules-mqttbroker.jar ./ruoyi/modules/mqttbroker/jar
echo "begin copy ruoyi-modules-tdengine"
cp ../ruoyi-modules/hw-tdengine/target/ruoyi-modules-tdengine.jar ./ruoyi/modules/tdengine/jar