humanleft
bfd6fef24c
fix: 覆盖 entrypoint.sh 使 taosadapter 读取配置文件
上游镜像的 entrypoint.sh 启动 taosadapter 时缺少 -c 参数,
导致 /etc/taos/taosadapter.toml 配置未生效。
- 新增 deploy/config/entrypoint.sh,在启动 taosadapter 时添加
-c /etc/taos/taosadapter.toml 参数
- 精简 taosadapter.toml,禁用 keeper 上传和未使用的插件
- 更新 start-tdengine-operator.sh,挂载修改后的 entrypoint.sh
2 週之前
humanleft
806cdb0a64
deploy: taos-explorer 和 iot-platform 改用 host.containers.internal 访问 TDengine
- tdengine-operator 同时启动 taosd + taosadapter(host 网络)
- 删除单独的 taosadapter bridge 容器
- explorer REST API 地址改为 host.containers.internal:6041
- explorer 去掉 cluster_native(bridge 网络 native 连接不可用)
- iot-platform JDBC URL 改为 host.containers.internal:6031
- start-tdengine-operator.sh 不传 taosd 参数,禁用 keeper/explorer
2 週之前
humanleft
be664864ed
fix: taos-explorer 挂载 explorer-register.cfg,注册信息持久化
2 週之前
humanleft
47a20a4280
fix: explorer.toml 恢复 REST API cluster,保留 cluster_native 辅助
2 週之前
humanleft
7064feef6a
fix: taos-explorer 挂载改为父目录,避免匿名卷覆盖
2 週之前
humanleft
a7e8f5d60c
deploy: taos-explorer 改 native 直连 + taosAdapter 独立容器化
- explorer.toml: 改为 cluster_native 直连 taosd:6031,注释掉 REST API
- 新增 taosadapter.toml: 独立 REST API 服务配置 (port 6041)
- 新增 start-taos-explorer.sh: bridge 网络,挂载数据目录和配置
- 新增 start-taosadapter.sh: bridge 网络,映射 6041 端口
- 新增 start-tdengine-operator.sh: host 网络,仅启动 taosd
- README.md: 更新容器架构、添加 TDengine 管理说明和架构图
2 週之前
humanleft
8772fd4c08
chore(deploy): JAR 备份保留数量改回 10 个
2 週之前
humanleft
12e9e3b352
feat(deploy): 限制 JAR 备份保留 3 个 + 清理 dangling 镜像
2 週之前
humanleft
08860c245f
docs: 更新部署文档和项目说明
- deploy/README.md:
- 安装目录 /opt/iot-platform -> /mnt/iot-platform
- 网络模式 host -> bridge,新增端口映射说明
- 去掉自动回滚描述,改为保留容器排查
- 新增容器架构表格和 TDengine 配置文件说明
- CLAUDE.md:
- Redis host: localhost -> ${REDIS_HOST:localhost}
- TDengine URL: 127.0.0.1 -> 172.21.185.173
- 环境变量示例添加 REDIS_HOST
2 週之前
humanleft
a5b7e0823f
feat(deploy): 容器网络架构改造 + 配置纳入版本控制
网络架构:
- iot-platform: host -> bridge (新增 -p 8887:8887 端口映射)
- taos-explorer: bridge (新增 /mnt/taos-explorer-data 数据持久化)
- tdengine-operator: 保持 host 网络
配置更新:
- TDengine URL: 127.0.0.1 -> 172.21.185.173 (宿主机内网 IP)
- Redis host: localhost -> ${REDIS_HOST:localhost} 环境变量
- taos.cfg fqdn: 127.0.0.1 -> 172.21.185.173
- explorer.toml cluster: localhost -> 172.21.185.173
部署脚本:
- REMOTE_DIR: /opt/iot-platform -> /mnt/iot-platform
- 日志目录: /opt/iot-platform/logs -> /mnt/iot-platform/logs
- 去掉自动回滚逻辑,保留容器用于排查
- 新增 -p 8887:8887 端口映射
新增服务器配置文件到仓库:
- deploy/Dockerfile
- deploy/start-container.sh
- deploy/config/taos.cfg
- deploy/config/explorer.toml
- deploy/config/tdengine-explorer.conf
- .env (移除 .gitignore 忽略)
2 週之前
humanleft
fd11440482
docs: 更新部署文档为容器化方案
- deploy/README.md: systemd → Podman 容器化部署
- CLAUDE.md: 更新部署命令、TDengine URL、.env 加载方式
2 週之前
humanleft
ea084791d6
chore(deploy): 部署脚本改为容器化 (Podman)
- 停止/启动 systemd 服务 → 停止/启动 Podman 容器
- 部署时自动构建容器镜像
- 回滚逻辑同步改为容器方式
2 週之前
humanleft
55f1074b48
chore: extend health check timeout from 30s to 60s
4 週之前
humanleft
58c2cae5cb
feat: add --no-rollback flag to deploy script
When --no-rollback is set, the script keeps the new version on the
server even if health check fails, making it possible to inspect
startup logs via journalctl to diagnose the issue.
4 週之前
humanleft
c3c35ae204
refactor: P0-P2 security, quality, deployment overhaul
Security (P0):
- Remove hardcoded MySQL password from SysrealtimeService
- Add table name whitelist validation (regex + length limit)
- Validate ${tableName} in SysrealtimeMapper.xml
- Externalize all credentials to .env file
- Fix unbounded thread pools in MQTT consumers
- Fix mysqlWritePool leak in MqttFaultConsumer
Quality (P1):
- Extract AbstractMqttConsumer base class (-500+ duplicate lines)
- Refactor VehicleSyncTask: SCAN instead of KEYS, batch ops,
RestTemplate timeout, loop-invariant extraction
- Add unit tests (RedisKeys, SysrealtimeService, MqttConsumer)
Architecture (P2):
- Add Spring Boot Actuator (/actuator/health)
- Create RedisKeys constants class for key namespace
- Add .env.example and start.sh for local development
Deployment:
- Add systemd service (iot-platform.service)
- Add deploy.sh with build, upload, backup, health check, rollback
- Add setup-server.sh for server initialization
- Add health-check.sh (Actuator + TCP port fallback)
Docs:
- Update CLAUDE.md for standalone iot-platform architecture
- Update README.md with build/deploy instructions
- Add deploy/README.md
4 週之前