deploy: align jt808 launchctl port

This commit is contained in:
lingniu
2026-07-01 11:56:10 +08:00
parent 12423efd64
commit 5ec3be97aa
3 changed files with 20 additions and 4 deletions

View File

@@ -3,7 +3,7 @@
本目录用于把本机 32960/JT808/history 三个服务的启动方式仓库化。模板面向当前生产验证链路: 本目录用于把本机 32960/JT808/history 三个服务的启动方式仓库化。模板面向当前生产验证链路:
- `gb32960-ingest-app`: TCP `32960`HTTP `20100` - `gb32960-ingest-app`: TCP `32960`HTTP `20100`
- `jt808-ingest-app`: TCP `808`HTTP `20482` - `jt808-ingest-app`: TCP `808`HTTP `20400`
- `vehicle-history-app`: HTTP `20200` - `vehicle-history-app`: HTTP `20200`
`vehicle-history-app` 的热历史查询只依赖 Kafka 与 TDengineRAW 帧的 `parsedJson``metadataJson``rawUri` 已进入 TDengine `raw_frames`。GB32960/JT808 接入服务可以继续保留 `SINK_ARCHIVE_PATH` 作为原始 `.bin` 冷备history 本机模板不再要求共享 archive root。 `vehicle-history-app` 的热历史查询只依赖 Kafka 与 TDengineRAW 帧的 `parsedJson``metadataJson``rawUri` 已进入 TDengine `raw_frames`。GB32960/JT808 接入服务可以继续保留 `SINK_ARCHIVE_PATH` 作为原始 `.bin` 冷备history 本机模板不再要求共享 archive root。
@@ -84,12 +84,12 @@ launchctl bootout "gui/$(id -u)" "$HOME/Library/LaunchAgents/com.lingniu.vehicle
```bash ```bash
curl -sS http://127.0.0.1:20100/actuator/health curl -sS http://127.0.0.1:20100/actuator/health
curl -sS http://127.0.0.1:20482/actuator/health curl -sS http://127.0.0.1:20400/actuator/health
curl -sS http://127.0.0.1:20200/actuator/health curl -sS http://127.0.0.1:20200/actuator/health
``` ```
Swagger Swagger
- GB32960 ingest: `http://127.0.0.1:20100/swagger-ui/index.html` - GB32960 ingest: `http://127.0.0.1:20100/swagger-ui/index.html`
- JT808 ingest: `http://127.0.0.1:20482/swagger-ui/index.html` - JT808 ingest: `http://127.0.0.1:20400/swagger-ui/index.html`
- History query: `http://127.0.0.1:20200/swagger-ui/index.html` - History query: `http://127.0.0.1:20200/swagger-ui/index.html`

View File

@@ -15,7 +15,7 @@
<key>EnvironmentVariables</key> <key>EnvironmentVariables</key>
<dict> <dict>
<key>HTTP_PORT</key> <key>HTTP_PORT</key>
<string>20482</string> <string>20400</string>
<key>JT808_PORT</key> <key>JT808_PORT</key>
<string>808</string> <string>808</string>
<key>KAFKA_ENABLED</key> <key>KAFKA_ENABLED</key>

View File

@@ -107,6 +107,22 @@ class PortainerComposeResourceLimitsTest {
.doesNotContain("/api/event-history/records"); .doesNotContain("/api/event-history/records");
} }
@Test
void localLaunchctlJt808UsesCurrentHttpPort() throws IOException {
Path launchctl = repositoryRoot().resolve("deploy/local/launchctl");
String jt808Template = Files.readString(launchctl.resolve("com.lingniu.jt808.plist.template"));
String readme = Files.readString(launchctl.resolve("README.md"));
assertThat(jt808Template)
.contains("<key>HTTP_PORT</key>\n <string>20400</string>")
.doesNotContain("20482");
assertThat(readme)
.contains("`jt808-ingest-app`: TCP `808`HTTP `20400`")
.contains("curl -sS http://127.0.0.1:20400/actuator/health")
.contains("JT808 ingest: `http://127.0.0.1:20400/swagger-ui/index.html`")
.doesNotContain("20482");
}
@Test @Test
void operationRunbooksDescribeTdengineRawJsonHotPath() throws IOException { void operationRunbooksDescribeTdengineRawJsonHotPath() throws IOException {
Path operations = repositoryRoot().resolve("docs/operations"); Path operations = repositoryRoot().resolve("docs/operations");