Skip to content
Snippets Groups Projects
Commit cdf0e876 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-677: don't try to load bootstrap jsons when starting dsconfig, but do so...

L2SS-677: don't try to load bootstrap jsons when starting dsconfig, but do so explicitly when we want those settigns
parent 7e6b6a2f
No related branches found
No related tags found
1 merge request!287L2SS-677: Save docker logs and tangodb dump as Gitlab CI artefacts
...@@ -181,6 +181,7 @@ bootstrap: pull build # first start, initialise from scratch ...@@ -181,6 +181,7 @@ bootstrap: pull build # first start, initialise from scratch
$(MAKE) start dsconfig # boot up containers to load configurations $(MAKE) start dsconfig # boot up containers to load configurations
sleep 5 # wait for dsconfig container to come up sleep 5 # wait for dsconfig container to come up
../sbin/update_ConfigDb.sh ../CDB/LOFAR_ConfigDb.json # load default configuration ../sbin/update_ConfigDb.sh ../CDB/LOFAR_ConfigDb.json # load default configuration
../sbin/update_ConfigDb.sh ../CDB/tango-archiver-data/archiver-devices.json # load default archive configuration
../sbin/update_ConfigDb.sh ../CDB/stations/simulators_ConfigDb.json # by default, use simulators ../sbin/update_ConfigDb.sh ../CDB/stations/simulators_ConfigDb.json # by default, use simulators
start: up ## start a service (usage: make start <servicename>) start: up ## start a service (usage: make start <servicename>)
......
...@@ -80,12 +80,10 @@ services: ...@@ -80,12 +80,10 @@ services:
- TANGO_HOST=${TANGO_HOST} - TANGO_HOST=${TANGO_HOST}
command: > command: >
sh -c "wait-for-it.sh ${TANGO_HOST} --timeout=30 --strict -- sh -c "wait-for-it.sh ${TANGO_HOST} --timeout=30 --strict --
json2tango -w -a -u /tango-archiver-data/archiver-devices.json &&
sleep infinity" sleep infinity"
volumes: volumes:
- ..:/opt/lofar/tango:rw - ..:/opt/lofar/tango:rw
- ${HOME}:/hosthome - ${HOME}:/hosthome
- ../CDB/tango-archiver-data:/tango-archiver-data
logging: logging:
driver: syslog driver: syslog
options: options:
......
...@@ -43,6 +43,7 @@ make start elk ...@@ -43,6 +43,7 @@ make start elk
# Update the dsconfig # Update the dsconfig
# Do not remove `bash`, otherwise statement ignored by gitlab ci shell! # Do not remove `bash`, otherwise statement ignored by gitlab ci shell!
bash "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${LOFAR20_DIR}"/CDB/LOFAR_ConfigDb.json bash "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${LOFAR20_DIR}"/CDB/LOFAR_ConfigDb.json
bash "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${LOFAR20_DIR}"/CDB/tango-archiver-data/archiver-devices.json
bash "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${LOFAR20_DIR}"/CDB/stations/simulators_ConfigDb.json bash "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${LOFAR20_DIR}"/CDB/stations/simulators_ConfigDb.json
bash "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${LOFAR20_DIR}"/CDB/stations/dummy_positions_ConfigDb.json bash "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${LOFAR20_DIR}"/CDB/stations/dummy_positions_ConfigDb.json
...@@ -87,7 +88,7 @@ fi ...@@ -87,7 +88,7 @@ fi
# Dump logs of important devices # Dump logs of important devices
for device in $DEVICES for device in $DEVICES
do do
docker logs "${device}" >& "${ARTIFACT_DIR}/${device}.log" docker logs "${CONTAINER_NAME_PREFIX}${device}" >& "${ARTIFACT_DIR}/${device}.log"
done done
exit $TEST_RESULT exit $TEST_RESULT
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