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