#!/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 ../couplet-ui/dist/** ./nginx/html/dist # copy jar echo "begin copy couplet-gateway " cp ../couplet-gateway/target/couplet-gateway.jar ./couplet/gateway/jar echo "begin copy couplet-auth " cp ../couplet-auth/target/couplet-auth.jar ./couplet/auth/jar echo "begin copy couplet-visual " cp ../couplet-visual/couplet-monitor/target/couplet-visual-monitor.jar ./couplet/visual/monitor/jar echo "begin copy couplet-modules-system " cp ../couplet-modules/couplet-system/target/couplet-modules-system.jar ./couplet/modules/system/jar echo "begin copy couplet-modules-file " cp ../couplet-modules/couplet-file/target/couplet-modules-file.jar ./couplet/modules/file/jar echo "begin copy couplet-modules-job " cp ../couplet-modules/couplet-job/target/couplet-modules-job.jar ./couplet/modules/job/jar echo "begin copy couplet-modules-gen " cp ../couplet-modules/couplet-gen/target/couplet-modules-gen.jar ./couplet/modules/gen/jar