Repository navigation
OpenTea DX-OS v1.5.0
Added
- MQTT sensor ingest:
mosquitto(no host port, per-HTX device accounts restricted to their own topics) anddxos-ingestvalidate every message and store it intelemetry.sensor_readings; rejected messages are kept with a reason intelemetry.ingest_rejects.dxos-simulator(profiledemo) publishes demo readings - Data lifecycle and lineage:
dxos-lifecyclemoves readings older than 30 days to Parquet (ZSTD) in thedxos-lakebucket in whole UTC days (the cutoff is floored to midnight UTC, so a row can stay hot for up to about one extra day), verifies SHA-256 and row count before deleting the hot rows, and records each export intelemetry.lifecycle_runsandaudit.events.python -m dxos_dataops queryreads the cold data through thesensor_readings_coldview. Hasura exposes both telemetry tables to managers and officers (scoped byhtx_code) - In-house LLM:
ollamaservesqwen2.5:0.5b(Apache-2.0) behind the gateway atPOST /api/ai/llm/v1/chat/completions(JWT with thedx-os-coreaudience, 30 requests per minute); the Ollama management API is not routed.ollama-initpulls the model and checks its ID - Dataops image: published to GHCR as
opentea-dx-os-dataops(6 images per release withmigrate); CI runs the dataops unit tests - Dependencies: Mosquitto (EPL-2.0), Ollama (MIT),
paho-mqtt(EPL-2.0 OR BSD-3-Clause),duckdb(MIT)
Changed
- Deploy order:
postgres->platform-init->migrate->platform-init-> the rest ->ollama-init.make platform-upruns it end to end, and the release flow is identical (--profile tools run --rm ollama-initlast) migratemoved intodocker/docker-compose.yml(profiletools), so the same service is used in dev and release
Fixed
- Hasura started before migrations (#17): it is no longer restarted by the smoke test;
platform-upmigrates first - Prebuilt
migrateimage (#15):apps/web/prisma/Dockerfileshipsprisma@5.22.0, the schema and the migrations; the entrypoint URL-encodesPOSTGRES_PASSWORDwhen it buildsDATABASE_URL - LLM smoke check retries on HTTP 429 and reports failures instead of exiting silently
Upgrade notes
- Add
DXOS_MQTT_DEVICES(comma list ofHTX_CODE:password) andDXOS_MQTT_INGEST_PASSWORDtodocker/.env.local(seedocker/.env.local.example). The release override makes the broker refuse to start while any of these passwords begins withchange_me. - Re-run
migrateandplatform-init(the postgres image gains04-telemetry.sql); create themosquitto,dxos-ingest,dxos-lifecycleandollamacontainers, then run--profile tools run --rm ollama-init. - Release flow: every
docker composecommand now takes--env-file docker/.env.localbefore-f; without it Compose used the defaults published in this repo. SeaweedFS refuses to start whileMINIO_ACCESS_KEYorMINIO_SECRET_KEYis empty or a placeholder, and Keycloak refuses to start whileKEYCLOAK_ADMIN_PASSWORDis empty,adminor begins withchange_me. Keycloak reads that value only on a new database, so on a running system also change the admin password inside Keycloak. On existing volumes,POSTGRES_PASSWORD,KEYCLOAK_DB_PASSWORDandN8N_ENCRYPTION_KEYin that file must match the values the volumes were initialised with (until now thedocker-compose.ymldefaults). - On a running release stack, restart
hasuraandapisixafterup -d --no-build(docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml restart hasura apisix): Hasura loads metadata only at start and APISIX keeps the old inode of its route file.make platform-updoes this in dev when the stack is already running. - Known limits: the cold view keeps the first-ingested copy of a duplicated key; Mosquitto saves its state every 60 seconds (
autosave_interval 60), so messages queued in the last 60 seconds can be lost if the broker crashes; a coldmake platform-upis slow because of the Ollama image and the 397 MB model pull;dxos-ingestanddxos-lifecycleshare theagrimarketdatabase account (a least-privilege role is Tier 2).
Container images
ghcr.io/maiychrus25/opentea-dx-os-web:1.5.0ghcr.io/maiychrus25/opentea-dx-os-api:1.5.0ghcr.io/maiychrus25/opentea-dx-os-postgres:1.5.0ghcr.io/maiychrus25/opentea-dx-os-scanner:1.5.0ghcr.io/maiychrus25/opentea-dx-os-migrate:1.5.0ghcr.io/maiychrus25/opentea-dx-os-dataops:1.5.0
Deploy
Download opentea-dx-os-1.5.0.tar.gz, verify it with SHA256SUMS, then follow the
release deployment guide (6-step order: postgres, platform-init, migrate, platform-init again, rest, then --profile tools run --rm ollama-init to pull the pinned LLM model).
Set DXOS_MQTT_DEVICES and DXOS_MQTT_INGEST_PASSWORD in docker/.env.local first: the broker refuses to start while any MQTT password begins with change_me.
Also set MINIO_ACCESS_KEY, MINIO_SECRET_KEY (SeaweedFS refuses placeholders), KEYCLOAK_ADMIN and KEYCLOAK_ADMIN_PASSWORD, and run every command as docker compose --env-file docker/.env.local -f docker/docker-compose.yml -f docker/docker-compose.release.yml ..., otherwise Compose ignores those values.