refactor: remove archive volume from history compose
This commit is contained in:
@@ -137,8 +137,6 @@ services:
|
|||||||
KAFKA_GROUP_HISTORY_GB32960_RAW: ${KAFKA_GROUP_HISTORY_GB32960_RAW:-${KAFKA_GROUP_HISTORY:-vehicle-history}-gb32960-raw}
|
KAFKA_GROUP_HISTORY_GB32960_RAW: ${KAFKA_GROUP_HISTORY_GB32960_RAW:-${KAFKA_GROUP_HISTORY:-vehicle-history}-gb32960-raw}
|
||||||
KAFKA_GROUP_HISTORY_JT808_RAW: ${KAFKA_GROUP_HISTORY_JT808_RAW:-${KAFKA_GROUP_HISTORY:-vehicle-history}-jt808-raw}
|
KAFKA_GROUP_HISTORY_JT808_RAW: ${KAFKA_GROUP_HISTORY_JT808_RAW:-${KAFKA_GROUP_HISTORY:-vehicle-history}-jt808-raw}
|
||||||
KAFKA_GROUP_HISTORY_YUTONG_MQTT_RAW: ${KAFKA_GROUP_HISTORY_YUTONG_MQTT_RAW:-${KAFKA_GROUP_HISTORY:-vehicle-history}-yutong-mqtt-raw}
|
KAFKA_GROUP_HISTORY_YUTONG_MQTT_RAW: ${KAFKA_GROUP_HISTORY_YUTONG_MQTT_RAW:-${KAFKA_GROUP_HISTORY:-vehicle-history}-yutong-mqtt-raw}
|
||||||
SINK_ARCHIVE_ENABLED: ${SINK_ARCHIVE_ENABLED:-true}
|
|
||||||
SINK_ARCHIVE_PATH: /archive/
|
|
||||||
TDENGINE_HISTORY_ENABLED: ${TDENGINE_HISTORY_ENABLED:-true}
|
TDENGINE_HISTORY_ENABLED: ${TDENGINE_HISTORY_ENABLED:-true}
|
||||||
TDENGINE_JDBC_URL: ${TDENGINE_JDBC_URL:-jdbc:TAOS-WS://172.17.111.57:6041/vehicle_ts}
|
TDENGINE_JDBC_URL: ${TDENGINE_JDBC_URL:-jdbc:TAOS-WS://172.17.111.57:6041/vehicle_ts}
|
||||||
TDENGINE_HISTORY_DATABASE: ${TDENGINE_HISTORY_DATABASE:-vehicle_ts}
|
TDENGINE_HISTORY_DATABASE: ${TDENGINE_HISTORY_DATABASE:-vehicle_ts}
|
||||||
@@ -149,8 +147,6 @@ services:
|
|||||||
TDENGINE_MAX_POOL_SIZE: ${TDENGINE_MAX_POOL_SIZE:-32}
|
TDENGINE_MAX_POOL_SIZE: ${TDENGINE_MAX_POOL_SIZE:-32}
|
||||||
ports:
|
ports:
|
||||||
- "${VEHICLE_HISTORY_HTTP_PORT:-20200}:20200"
|
- "${VEHICLE_HISTORY_HTTP_PORT:-20200}:20200"
|
||||||
volumes:
|
|
||||||
- vehicle-history-archive:/archive
|
|
||||||
networks:
|
networks:
|
||||||
- vehicle-ingest
|
- vehicle-ingest
|
||||||
|
|
||||||
@@ -185,4 +181,3 @@ networks:
|
|||||||
volumes:
|
volumes:
|
||||||
gb32960-ingest-data:
|
gb32960-ingest-data:
|
||||||
jt808-ingest-data:
|
jt808-ingest-data:
|
||||||
vehicle-history-archive:
|
|
||||||
|
|||||||
@@ -48,6 +48,19 @@ class PortainerComposeResourceLimitsTest {
|
|||||||
.doesNotContain("\n TDENGINE_DATABASE:");
|
.doesNotContain("\n TDENGINE_DATABASE:");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
void vehicleHistoryDoesNotExposeUnusedArchiveSinkSettings() throws IOException {
|
||||||
|
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
|
||||||
|
String historyService = serviceBlock(compose, "vehicle-history-app");
|
||||||
|
|
||||||
|
assertThat(historyService)
|
||||||
|
.doesNotContain("SINK_ARCHIVE_ENABLED")
|
||||||
|
.doesNotContain("SINK_ARCHIVE_PATH")
|
||||||
|
.doesNotContain("/archive");
|
||||||
|
assertThat(compose)
|
||||||
|
.doesNotContain("vehicle-history-archive:");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void vehicleAnalyticsComposeOnlyExposesStatConsumerEnvironment() throws IOException {
|
void vehicleAnalyticsComposeOnlyExposesStatConsumerEnvironment() throws IOException {
|
||||||
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
|
String compose = Files.readString(repositoryRoot().resolve("deploy/portainer/docker-compose.yml"));
|
||||||
|
|||||||
Reference in New Issue
Block a user