Commit Graph

168 Commits

Author SHA1 Message Date
mediabot-pt
a5279e0a69 fix: 静态资源配置添加 classpath:/static/ 回退路径,修复首页 500 错误 2026-06-29 13:49:34 +08:00
mediabot-pt
145f745e71 perf: 前端 Element Plus 按需导入 + 代码分割,bundle 从 1.18MB 降至 ~500KB
- 引入 unplugin-vue-components 自动按需导入 Element Plus 组件和图标
- 引入 unplugin-auto-import 自动导入 Vue/EP API(ref/reactive/ElMessage 等)
- vite.config 添加 manualChunks 拆包(vendor 独立 chunk)
- 移除 main.js 全量 Element Plus 导入和图标注册
- 所有 .vue 文件移除冗余的 import 语句
2026-06-29 13:18:59 +08:00
mediabot-pt
67b6e356e8 fix: 添加 flyway-core 版本锁定 10.15.0,修复与 Spring Boot BOM 9.22.3 冲突 2026-06-29 13:14:17 +08:00
mediabot-pt
03bcf974b1 fix: ENTRYPOINT 兼容 DB_* 和 MYSQL_* 两种变量命名,修复 MySQL 连接失败 2026-06-29 13:08:11 +08:00
mediabot-pt
0e74734636 perf: 部署步骤使用 alpine-openssh 镜像,省去每次 apk add 安装 SSH 2026-06-29 12:59:09 +08:00
mediabot-pt
180022e42d perf: 参考 mediabot 优化 Dockerfile 入口脚本和镜像元数据
- 两个 Dockerfile 同步 OCI 标准镜像标签(org.opencontainers.image.*)
- ENTRYPOINT 改为动态构造数据源 URL(MYSQL_* → SPRING_DATASOURCE_*),兼容不同环境
- 注入 APP_VERSION / APP_BUILD_TIME 环境变量,便于运行时查看版本
- 支持 JAVA_OPTS 环境变量
- 创建 /app/data /app/logs 运行时目录
2026-06-29 12:57:24 +08:00
mediabot-pt
b24ec27905 perf: 优化 CI Docker 镜像构建速度
- 新增 CI 精简 Dockerfile,直接打包 drone 预编译 jar,避免在 Docker 内重复编译(省去 npm ci + mvn 全量编译 ~15min)
- build-docker-image 步骤改用精简 Dockerfile,去掉无效的 docker pull 缓存尝试
- maven-build 步骤优化:动态检测 CPU 核数设置并行度 -T 1C/2C、增加 JVM 内存、添加 --fail-at-end
- .dockerignore 优化:CI Dockerfile 仅需 par-api/target/*.jar,排除所有源码/pom/前端文件
- par-api/Dockerfile 标注为独立多阶段构建版本(本地使用)

参考 mediabot 项目的多阶段构建思路,但将编译前置到 drone host 缓存中,Docker 构建秒级完成
2026-06-29 12:53:33 +08:00
mediabot-pt
d5fc73cad7 ci: speed up docker build with BuildKit cache mount and layer caching 2026-06-29 12:37:48 +08:00
mediabot-pt
76f975915c ci: align Dockerfile base images with mediabot (use Harbor maven-java21 + eclipse-temurin) 2026-06-29 12:24:37 +08:00
mediabot-pt
478a1e197a ci: use aliyun mirror for eclipse-temurin base images 2026-06-29 12:20:55 +08:00
mediabot-pt
7a83b1cc31 ci: fix SSH deploy by switching to alpine + openssh-client and PEM key conversion 2026-06-29 12:08:22 +08:00
mediabot-pt
c6f371af0f ci: speed up build by using Harbor images and Aliyun mirrors for Maven/npm 2026-06-29 12:05:28 +08:00
mediabot-pt
7e301ed69f ci: complete Drone pipeline referencing mediabot (frontend build, docker build, harbor push, deploy) 2026-06-29 11:22:44 +08:00
mediabot-pt
6f56cde229 feat: add Vue 3 admin frontend and integrate with backend like mediabot 2026-06-29 11:14:37 +08:00
mediabot-pt
25cd9873ae refactor: read database connection and config from environment variables like mediabot 2026-06-29 10:59:02 +08:00
mediabot-pt
13ce7d95dd ci: update Drone config for dev/test/main branch workflow 2026-06-29 10:51:06 +08:00
mediabot-pt
5b86621f81 chore: add Drone CI/CD, docker-compose, deploy script and update Dockerfile to Java 21 2026-06-29 10:49:09 +08:00
mediabot-pt
baa04b5138 Initial commit: PAR Server with Spring Boot 3.2, MyBatis-Plus, Flyway 2026-06-29 10:43:24 +08:00