Skip to content
Snippets Groups Projects
Commit 16e1b9ce authored by Bert Palm's avatar Bert Palm :bug:
Browse files

adjusted orchestration for start of configdb-updater

parent ad0d61e8
No related branches found
No related tags found
1 merge request!187Worker configdb updater
Pipeline #415248 passed
......@@ -206,6 +206,7 @@ CADVISOR_PORT=127.0.0.1:8080
# soon we will change that.
############################################################
DISPATCHER_IMAGE_TAG=latest
CONFIGDB_UPDATER_IMAGE_TAG=latest
SCHEDULER=BasicScheduler
SCHED_HOST=http://basic-demo-scheduler:5000
......
---
services:
worker-configdb-updater:
volumes:
- "${DEV_CONFIGDB_UPDATER_SRC_DIR:-../timeio-configdb-updater/src}:/usr/src/app"
worker-object-storage-setup:
volumes:
- "${DEV_DISPATCHER_SRC_DIR:-../tsm-dispatcher/src}:/home/appuser/app/src"
......
......@@ -502,10 +502,14 @@ services:
# fills and updates the config-db from setup mqtt-messages
# (e.g. topic: frontend-thing-update)
worker-configdb-update:
# image: "registry.hzdr.de/ufz-tsm/tsm-dispatcher/store_thing_in_configdb:${STORE_THING_IN_CONFIGDB_IMAGE_TAG}"
build:
context: ../tsm-dispatcher/configdb_updater/
worker-configdb-updater:
image: "registry.hzdr.de/ufz-tsm/timeio-configdb-updater/configdb-updater:${CONFIGDB_UPDATER_IMAGE_TAG}"
restart: "${RESTART}"
depends_on:
database:
condition: "service_healthy"
mqtt-broker:
condition: "service_healthy"
environment:
LOG_LEVEL: "${LOG_LEVEL}"
MQTT_BROKER_HOST: "mqtt-broker"
......@@ -516,7 +520,7 @@ services:
MQTT_CLEAN_SESSION: "${MQTT_CLEAN_SESSION}"
MQTT_SUBSCRIBE_TOPIC: "frontend_thing_update"
MQTT_SUBSCRIBE_QOS: "${MQTT_QOS}"
MQTT_PUBLISH_TOPIC: "todotodotodo" # todo
MQTT_PUBLISH_TOPIC: "configdb_update"
MQTT_PUBLISH_QOS: "${MQTT_QOS}"
CONFIGDB_CONNECTION_INITIAL_TIMEOUT: 10
CONFIGDB_DSN: "postgresql://\
......
......@@ -24,6 +24,7 @@ if [ ! -f /mosquitto-auth/mosquitto.acl ]; then
echo "topic readwrite thing_creation"
echo "topic readwrite logging/#"
echo "topic readwrite object_storage_notification"
echo "topic readwrite configdb_update/#"
echo ""
echo "# Each user has its own topic and logging namespace"
echo "pattern readwrite mqtt_ingest/%u/#"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment