4 Commits
Author SHA1 Message Date
chenxing 6ceaed63d6 SSO 地址去掉 /cas 前缀:context-path 改为根路径,登录地址 /cas/login 变为 /login
build / build-push (push) Successful in 3m33s
2026-09-03 22:28:28 +08:00
chenxing dc8a0924a8 修复容器 hostname 无法解析导致的启动报错
build / build-push (push) Successful in 2m45s
现象:CAS banner 后持续 ERROR Could not determine local host name
UnknownHostException: <容器短ID>: Temporary failure in name resolution。

根因:容器 hostname 默认为容器短 ID,当前网络环境下 /etc/hosts 未含该行、
内网 DNS 亦无法解析,InetAddress.getLocalHost() 失败;连锁导致 CAS
TicketIdSanitizationUtils 静态初始化抛 ExceptionInInitializerError(票据日志带病)。

修复:ENTRYPOINT 改为 entrypoint.sh,启动前把 hostname 兜底写入 /etc/hosts
(已存在则跳过),再 exec java -jar cas.war。不依赖 projman 侧改动,任何部署方式均生效。
2026-08-31 20:11:11 +08:00
chenxing d6583f49f9 迁移 CasSsoService 源码并按 CAS war overlay 形态适配 CI
build / build-push (push) Successful in 4m8s
- 复制 CAS 5.3.16 overlay 源码(src/、pom.xml、etc/cas/config/log4j2.xml、docker/cas.properties)及本地构建辅助(build.cmd/build.sh/maven-settings.xml)
- build.yml:maven 产物由 jar 改为 war(cp cas.war app.jar),CI 内源码构建,摆脱 174MB war blob 入库
- Dockerfile:CAS 专用镜像(自签名 keystore 8443 HTTPS + 内置 cas.properties/log4j2.xml + JAVA_OPTS 注入)
- pom.xml:移除 sonatype/shibboleth 外网仓库,依赖全部经 nexus maven-public 解析
- 前端 front/ 不入库(CasSsoFront 仓库独立发布)
2026-08-31 18:55:29 +08:00
admin 7d8f033f11 ci: init Dockerfile [skip ci] 2026-08-31 18:34:06 +08:00