Commit Graph

10 Commits

Author SHA1 Message Date
mediabot-pt
03bcf974b1 fix: ENTRYPOINT 兼容 DB_* 和 MYSQL_* 两种变量命名,修复 MySQL 连接失败 2026-06-29 13:08:11 +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
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
6f56cde229 feat: add Vue 3 admin frontend and integrate with backend like mediabot 2026-06-29 11:14:37 +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