diff --git a/bin/clean.bat b/bin/clean.bat index af841d8e..28e73912 100644 --- a/bin/clean.bat +++ b/bin/clean.bat @@ -1,6 +1,6 @@ @echo off echo. -echo [信息] 清理工程target生成路径。 +echo [淇℃伅] 娓呯悊宸ョ▼target鐢熸垚璺緞銆 echo. %~d0 diff --git a/docker/copy.ps1 b/docker/copy.ps1 new file mode 100644 index 00000000..268653ca --- /dev/null +++ b/docker/copy.ps1 @@ -0,0 +1,45 @@ +#!/usr/bin/env pwsh + +<# +.SYNOPSIS +澶嶅埗椤圭洰鐨勬枃浠跺埌瀵瑰簲docker璺緞锛屼究浜庝竴閿敓鎴愰暅鍍忋 +#> + +# 澶嶅埗SQL鏂囦欢 +Write-Host "begin copy sql" +Copy-Item -Path "../sql/ry_20250425.sql" -Destination "./mysql/db" -Force +Copy-Item -Path "../sql/ry_config_20250224.sql" -Destination "./mysql/db" -Force + +# 澶嶅埗HTML鏂囦欢 +Write-Host "begin copy html" +if (Test-Path "../ruoyi-ui/dist") { + Remove-Item -Path "./nginx/html/dist" -Recurse -Force -ErrorAction SilentlyContinue + New-Item -ItemType Directory -Path "./nginx/html/dist" -Force | Out-Null + Copy-Item -Path "../ruoyi-ui/dist/*" -Destination "./nginx/html/dist" -Recurse -Force +} else { + Write-Host "Warning: ../ruoyi-ui/dist directory not found" +} + +# 澶嶅埗JAR鏂囦欢 +Write-Host "begin copy ruoyi-gateway" +Copy-Item -Path "../ruoyi-gateway/target/ruoyi-gateway.jar" -Destination "./ruoyi/gateway/jar" -Force + +Write-Host "begin copy ruoyi-auth" +Copy-Item -Path "../ruoyi-auth/target/ruoyi-auth.jar" -Destination "./ruoyi/auth/jar" -Force + +Write-Host "begin copy ruoyi-visual" +Copy-Item -Path "../ruoyi-visual/ruoyi-monitor/target/ruoyi-visual-monitor.jar" -Destination "./ruoyi/visual/monitor/jar" -Force + +Write-Host "begin copy ruoyi-modules-system" +Copy-Item -Path "../ruoyi-modules/ruoyi-system/target/ruoyi-modules-system.jar" -Destination "./ruoyi/modules/system/jar" -Force + +Write-Host "begin copy ruoyi-modules-file" +Copy-Item -Path "../ruoyi-modules/ruoyi-file/target/ruoyi-modules-file.jar" -Destination "./ruoyi/modules/file/jar" -Force + +Write-Host "begin copy ruoyi-modules-job" +Copy-Item -Path "../ruoyi-modules/ruoyi-job/target/ruoyi-modules-job.jar" -Destination "./ruoyi/modules/job/jar" -Force + +Write-Host "begin copy ruoyi-modules-gen" +Copy-Item -Path "../ruoyi-modules/ruoyi-gen/target/ruoyi-modules-gen.jar" -Destination "./ruoyi/modules/gen/jar" -Force + +Write-Host "copy completed" \ No newline at end of file diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 5fb8da1c..0e2799bf 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -2,7 +2,6 @@ version : '3.8' services: ruoyi-nacos: container_name: ruoyi-nacos - image: nacos/nacos-server build: context: ./nacos environment: @@ -18,7 +17,6 @@ services: - ruoyi-mysql ruoyi-mysql: container_name: ruoyi-mysql - image: mysql:5.7 build: context: ./mysql ports: @@ -40,7 +38,6 @@ services: MYSQL_ROOT_PASSWORD: password ruoyi-redis: container_name: ruoyi-redis - image: redis build: context: ./redis ports: diff --git a/docker/mysql/dockerfile b/docker/mysql/Dockerfile similarity index 94% rename from docker/mysql/dockerfile rename to docker/mysql/Dockerfile index b35dc5fd..cc006f40 100644 --- a/docker/mysql/dockerfile +++ b/docker/mysql/Dockerfile @@ -1,7 +1,7 @@ -# 鍩虹闀滃儚 -FROM mysql:5.7 -# author -MAINTAINER ruoyi - -# 鎵цsql鑴氭湰 -ADD ./db/*.sql /docker-entrypoint-initdb.d/ +# 鍩虹闀滃儚 +FROM mysql:5.7 +# author +MAINTAINER ruoyi + +# 鎵цsql鑴氭湰 +ADD ./db/*.sql /docker-entrypoint-initdb.d/ diff --git a/docker/nginx/html/dist/readme.txt b/docker/nginx/html/dist/readme.txt deleted file mode 100644 index eea3a328..00000000 --- a/docker/nginx/html/dist/readme.txt +++ /dev/null @@ -1 +0,0 @@ -存放前端ruoyi-ui构建好的静态文件,用于nginx请求访问。 \ No newline at end of file diff --git a/docker/ruoyi/auth/jar/readme.txt b/docker/ruoyi/auth/jar/readme.txt index c35ba276..eb21d619 100644 --- a/docker/ruoyi/auth/jar/readme.txt +++ b/docker/ruoyi/auth/jar/readme.txt @@ -1 +1 @@ -存放认证中心打包好的jar文件,用于docker启动应用。 \ No newline at end of file +瀛樻斁璁よ瘉涓績鎵撳寘濂界殑jar鏂囦欢锛岀敤浜巇ocker鍚姩搴旂敤銆 \ No newline at end of file diff --git a/docker/ruoyi/gateway/jar/readme.txt b/docker/ruoyi/gateway/jar/readme.txt index 5dfbec76..48034ed9 100644 --- a/docker/ruoyi/gateway/jar/readme.txt +++ b/docker/ruoyi/gateway/jar/readme.txt @@ -1 +1 @@ -存放网关模块打包好的jar文件,用于docker启动应用。 \ No newline at end of file +瀛樻斁缃戝叧妯″潡鎵撳寘濂界殑jar鏂囦欢锛岀敤浜巇ocker鍚姩搴旂敤銆 \ No newline at end of file diff --git a/docker/ruoyi/visual/monitor/jar/readme.txt b/docker/ruoyi/visual/monitor/jar/readme.txt index 62b28410..897e01d5 100644 --- a/docker/ruoyi/visual/monitor/jar/readme.txt +++ b/docker/ruoyi/visual/monitor/jar/readme.txt @@ -1 +1 @@ -存放监控中心打包好的jar文件,用于docker启动应用。 \ No newline at end of file +瀛樻斁鐩戞帶涓績鎵撳寘濂界殑jar鏂囦欢锛岀敤浜巇ocker鍚姩搴旂敤銆 \ No newline at end of file