ZeroErrOACloud-Drone-Java/docker/copy.sh

42 lines
1.2 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/sh
# 复制项目的文件到对应docker路径便于一键生成镜像。
usage() {
echo "Usage: sh copy.sh"
exit 1
}
# copy sql
echo "begin copy sql "
cp ../sql/ry_20231130.sql ./mysql/db
cp ../sql/ry_config_20231204.sql ./mysql/db
# copy html
echo "begin copy html "
cp -r ../zeroerroa-ui/dist/** ./nginx/html/dist
# copy jar
echo "begin copy zeroerroa-gateway "
cp ../zeroerroa-gateway/target/zeroerroa-gateway.jar ./ruoyi/gateway/jar
echo "begin copy zeroerroa-auth "
cp ../zeroerroa-auth/target/zeroerroa-auth.jar ./ruoyi/auth/jar
echo "begin copy zeroerroa-visual "
cp ../zeroerroa-visual/zeroerroa-monitor/target/zeroerroa-visual-monitor.jar ./ruoyi/visual/monitor/jar
echo "begin copy zeroerroa-modules-system "
cp ../zeroerroa-modules/zeroerroa-system/target/zeroerroa-modules-system.jar ./ruoyi/modules/system/jar
echo "begin copy zeroerroa-modules-file "
cp ../zeroerroa-modules/zeroerroa-file/target/zeroerroa-modules-file.jar ./ruoyi/modules/file/jar
echo "begin copy zeroerroa-modules-job "
cp ../zeroerroa-modules/zeroerroa-job/target/zeroerroa-modules-job.jar ./ruoyi/modules/job/jar
echo "begin copy zeroerroa-modules-gen "
cp ../zeroerroa-modules/zeroerroa-gen/target/zeroerroa-modules-gen.jar ./ruoyi/modules/gen/jar