Files
senmesh-zc/deployment/iw/VERSION.txt
KodouWZF 9be37fe7f8 fix(部署): 交付包容器内路径与老系统对齐,日志与临时目录落数据盘
库里 xs_file_record.file_path 存的是 file.upload-dir 拼出来的绝对路径,老系统是
/var/s-file/upload,新包之前写 /data/upload 会让接老库的历史文件全部读不到(只能迁库),
现在容器内逐字一致,宿主机侧仍由 .env 的 SFILE_DATA_ROOT 决定。

顺带把两处老配置没真正落地的补上:
- logging.file.name 沿用 /usr/local/logs/s-file.log。之前 /app/logs 挂载是空的——yml 没设
  文件日志,输出只进 docker 的 json-file 且不封顶;同时给 app 的 json 日志加 20m×5 上限
- java.io.tmpdir 用 -D 指到 upload 挂载内。老项目把这行写在 application.properties 里
  并不会改 JVM 系统属性,等于没生效;现在 500MB 上传缓冲落在数据盘而不是容器 overlay 层

摆渡目录保持容器内 /data/transfer/*:光闸需要能单独挂它,嵌进 upload 树会把整个文件库
暴露给光闸,而传输包是过路文件、路径不入库。宿主机侧照旧可与老机器同路径(GATE_*)。
内外网两套 compose/config/install.sh 仍字节一致。
2026-11-05 01:07:54 +08:00

21 lines
1.0 KiB
Plaintext
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.
s-file 部署包 1.0.1(内网机 iw)
包配置修订: git v1.0.2 —— 容器内路径/日志/tmpdir 与老系统对齐;镜像与 jar 未变,images/*.tar 不用重出
构建平台: linux/amd64
导出时间: 2026-11-04 21:45:19
后端 jar: d39b3b0(+ 未提交改动则与本仓库当前源码一致)
镜像清单(sha256 见 images/SHA256SUMS.txt):
nginx.tar 21M "RepoTags":["nginx:1.27-alpine"]
postgres.tar 161M "RepoTags":["postgres:18"]
rabbitmq.tar 84M "RepoTags":["rabbitmq:3.13-management-alpine"]
redis.tar 53M "RepoTags":["redis:8"]
sfile-app.tar 313M "RepoTags":["sfile-app:1.0.1"]
前端静态包: web/(内网包/外网包已分别就位,改页面直接替换文件)
SQL: sql/01-init-table.sql sql/02-init-data.sql 老库增量: sql/upgrade/
现场步骤(本机执行):
1) 整目录拷到服务器,例如 /opt/sfile-iw && cd /opt/sfile-iw
2) vi .env # 至少确认 MESHSAFE_ENABLED/SECRET、WEB_PORT、SFILE_DATA_ROOT、GATE_*
3) ./scripts/install.sh