From af0b187272938a2442927f989814423bc28d41c3 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Mon, 20 Dec 2021 10:41:02 +0100 Subject: [PATCH] L2SS-534: Remove docker images that require X11 or are otherwise not used to run on a station --- docker-compose/archiver.yml | 120 -------------------------------- docker-compose/astor.yml | 52 -------------- docker-compose/hdbpp_viewer.yml | 40 ----------- docker-compose/jive.yml | 38 ---------- docker-compose/logviewer.yml | 31 --------- docker-compose/pogo.yml | 34 --------- docker-compose/tango.yml | 26 +++++++ docker-compose/tangotest.yml | 29 -------- 8 files changed, 26 insertions(+), 344 deletions(-) delete mode 100644 docker-compose/archiver.yml delete mode 100644 docker-compose/astor.yml delete mode 100644 docker-compose/hdbpp_viewer.yml delete mode 100644 docker-compose/jive.yml delete mode 100644 docker-compose/logviewer.yml delete mode 100644 docker-compose/pogo.yml delete mode 100644 docker-compose/tangotest.yml diff --git a/docker-compose/archiver.yml b/docker-compose/archiver.yml deleted file mode 100644 index 12ec2d889..000000000 --- a/docker-compose/archiver.yml +++ /dev/null @@ -1,120 +0,0 @@ -version: '2' - -services: - archiver-maria-db: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/mariadb_hdbpp:2021-05-28 - container_name: ${CONTAINER_NAME_PREFIX}archiver-maria-db - networks: - - control - ports: - - "3307:3306/tcp" - depends_on: - - databaseds - environment: - - MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD} - - MYSQL_DATABASE=hdbpp - - MYSQL_HOST=archiver-maria-db:3306 - - MYSQL_USER=tango - - MYSQL_PASSWORD=${MYSQL_PASSWORD} - - TANGO_HOST=${TANGO_HOST} - logging: - driver: syslog - options: - syslog-address: udp://${LOG_HOSTNAME}:1514 - syslog-format: rfc3164 - tag: "{{.Name}}" - restart: unless-stopped - - hdbpp-es: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-archiver:2021-05-28 - networks: - - control - container_name: ${CONTAINER_NAME_PREFIX}hdbpp-es - depends_on: - - databaseds - - dsconfig - - archiver-maria-db - environment: - - TANGO_HOST=${TANGO_HOST} - - HdbManager=archiving/hdbpp/confmanager01 - command: > - /bin/bash -c " - wait-for-it.sh archiver-maria-db:3306 --timeout=30 --strict -- - wait-for-it.sh ${TANGO_HOST} --timeout=30 --strict -- - hdbppes-srv 01" - logging: - driver: syslog - options: - syslog-address: udp://${LOG_HOSTNAME}:1514 - syslog-format: rfc3164 - tag: "{{.Name}}" - restart: unless-stopped - - hdbpp-es2: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-archiver:2021-05-28 - networks: - - control - container_name: hdbpp-es2 - depends_on: - - databaseds - - dsconfig - - archiver-maria-db - environment: - - TANGO_HOST=${TANGO_HOST} - - HdbManager=archiving/hdbpp/confmanager01 - command: > - /bin/bash -c " - wait-for-it.sh archiver-maria-db:3306 --timeout=30 --strict -- - wait-for-it.sh ${TANGO_HOST} --timeout=30 --strict -- - hdbppes-srv 03" - restart: unless-stopped - - hdbpp-cm: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-archiver:${TANGO_ARCHIVER_VERSION} - networks: - - control - container_name: ${CONTAINER_NAME_PREFIX}hdbpp-cm - depends_on: - - databaseds - - dsconfig - - archiver-maria-db - environment: - - TANGO_HOST=${TANGO_HOST} - - HdbManager=archiving/hdbpp/confmanager01 - command: > - /bin/bash -c " - wait-for-it.sh archiver-maria-db:3306 --timeout=30 --strict -- - wait-for-it.sh ${TANGO_HOST} --timeout=30 --strict -- - hdbppcm-srv 01" - logging: - driver: syslog - options: - syslog-address: udp://${LOG_HOSTNAME}:1514 - syslog-format: rfc3164 - tag: "{{.Name}}" - - dsconfig: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-dsconfig:${TANGO_DSCONFIG_VERSION} - container_name: ${CONTAINER_NAME_PREFIX}dsconfig - networks: - - control - depends_on: - - databaseds - environment: - - TANGO_HOST=${TANGO_HOST} - command: > - sh -c "wait-for-it.sh ${TANGO_HOST} --timeout=30 --strict -- - json2tango -w -a -u /tango-archiver/data/archiver-devices.json && - sleep infinity" - volumes: - - ..:/opt/lofar/tango:rw - - ${HOME}:/hosthome - - ../docker/tango/tango-archiver:/tango-archiver - logging: - driver: syslog - options: - syslog-address: udp://${LOG_HOSTNAME}:1514 - syslog-format: rfc3164 - tag: "{{.Name}}" - restart: unless-stopped - diff --git a/docker-compose/astor.yml b/docker-compose/astor.yml deleted file mode 100644 index 502472fc4..000000000 --- a/docker-compose/astor.yml +++ /dev/null @@ -1,52 +0,0 @@ -# -# Docker compose file that launches Astor, sending the display to a remote X11 -# display. -# -# Defines: -# - astor: service that runs Astor in a container -# - container1: example container running Starter device -# -# Requires: -# - tango.yml -# -version: '2' - -services: - astor: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-java:${TANGO_JAVA_VERSION} - container_name: ${CONTAINER_NAME_PREFIX}astor - networks: - - control - volumes: - - ${XAUTHORITY_MOUNT} - environment: - - XAUTHORITY=${XAUTHORITY} - - DISPLAY=${DISPLAY} - - TANGO_HOST=${TANGO_HOST} - entrypoint: - - /usr/local/bin/wait-for-it.sh - - ${TANGO_HOST} - - --timeout=30 - - --strict - - -- - - /usr/local/bin/astor - - starter-example: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-starter:${TANGO_STARTER_VERSION} - container_name: ${CONTAINER_NAME_PREFIX}starter-example - networks: - - control - # set the hostname, otherwise duplicate device registrations result every - # time the hostname changes as the container is restarted. - hostname: starter-example - environment: - - TANGO_HOST=${TANGO_HOST} - entrypoint: - - /usr/local/bin/wait-for-it.sh - - ${TANGO_HOST} - - --timeout=30 - - --strict - - -- - - /usr/bin/supervisord - - --configuration - - /etc/supervisor/supervisord.conf diff --git a/docker-compose/hdbpp_viewer.yml b/docker-compose/hdbpp_viewer.yml deleted file mode 100644 index 9a1f9da06..000000000 --- a/docker-compose/hdbpp_viewer.yml +++ /dev/null @@ -1,40 +0,0 @@ -# -# Docker compose file that launches HdbViewer, sending the display to a remote X11 -# display. -# -# -# Requires: -# - tango.yml -# -version: '2' - -services: - hdbpp-viewer: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/hdbpp_viewer:${TANGO_HDBPP_VIEWER_VERSION} - container_name: ${CONTAINER_NAME_PREFIX}hdbpp-viewer - network_mode: host - depends_on: - - databaseds - - dsconfig - - archiver-maria-db - - hdbpp-es - - hdbpp-cm - volumes: - - ${XAUTHORITY_MOUNT} - environment: - - XAUTHORITY=${XAUTHORITY} - - DISPLAY=${DISPLAY} - - TANGO_HOST=localhost:10000 - - HDB_TYPE=mysql - - HDB_MYSQL_HOST=localhost - - HDB_MYSQL_PORT=3307 - - HDB_USER=tango - - HDB_PASSWORD=tango - - HDB_NAME=hdbpp - - CLASSPATH=JTango.jar:ATKCore.jar:ATKWidget.jar:jhdbviewer.jar:HDBPP.jar:jython.jar:jcalendar.jar - entrypoint: - - wait-for-it.sh - - localhost:10000 - - --strict - - -- - - ./hdbpp_viewer/hdbpp_viewer_script diff --git a/docker-compose/jive.yml b/docker-compose/jive.yml deleted file mode 100644 index 5a2caea9a..000000000 --- a/docker-compose/jive.yml +++ /dev/null @@ -1,38 +0,0 @@ -# -# Docker compose file that launches Jive, sending output to a remote X11 -# display. -# -# This container will always run on the same network as the host, -# to make sure the DISPLAY variable can be used verbatim. For the -# same reason, TANGO_HOST is hardcoded to be at localhost:10000: -# the docker network offering our tangodb also exposes it on port 10000 -# on the host. -# -# Defines: -# - jive: container running Jive -# -# Requires: -# - tango.yml -# -version: '2' - -services: - jive: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-java:${TANGO_JAVA_VERSION} - container_name: ${CONTAINER_NAME_PREFIX}jive - network_mode: host - volumes: - - ${XAUTHORITY_MOUNT} - - ..:/opt/lofar/tango:rw - - ${HOME}:/hosthome - environment: - - XAUTHORITY=${XAUTHORITY} - - DISPLAY=${DISPLAY} - - TANGO_HOST=localhost:10000 - entrypoint: - - /usr/local/bin/wait-for-it.sh - - localhost:10000 - - --timeout=30 - - --strict - - -- - - /usr/local/bin/jive diff --git a/docker-compose/logviewer.yml b/docker-compose/logviewer.yml deleted file mode 100644 index 08da4000b..000000000 --- a/docker-compose/logviewer.yml +++ /dev/null @@ -1,31 +0,0 @@ -# -# Docker compose file that launches LogViewer, sending output to a remote X11 -# display. -# -# Defines: -# - logviewer: container running LogViewer -# -# Requires: -# - tango.yml -# -version: '2' - -services: - logviewer: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-java:${TANGO_JAVA_VERSION} - container_name: ${CONTAINER_NAME_PREFIX}logviewer - networks: - - control - volumes: - - ${XAUTHORITY_MOUNT} - environment: - - XAUTHORITY=${XAUTHORITY} - - DISPLAY=${DISPLAY} - - TANGO_HOST=${TANGO_HOST} - entrypoint: - - /usr/local/bin/wait-for-it.sh - - ${TANGO_HOST} - - --timeout=30 - - --strict - - -- - - /usr/local/bin/logviewer diff --git a/docker-compose/pogo.yml b/docker-compose/pogo.yml deleted file mode 100644 index 954841746..000000000 --- a/docker-compose/pogo.yml +++ /dev/null @@ -1,34 +0,0 @@ -# -# Docker compose file that launches Pogo, sending the display to a remote X11 -# display. Pogo output can be persisted by writing to either: -# 1. the /home/tango folder, which is a Docker volume persisted between -# container runs; -# 2. the /hosthome folder, which is a r/w mount of your home folder. -# -# Defines: -# - pogo (service): service running Pogo -# - pogo (volume): persistent volume for writing Pogo outut -# -# Requires: -# - N/A -# -version: '2' - -# Create a volume so that Pogo preferences and Pogo output can be persisted -volumes: - pogo: {} - -services: - pogo: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-pogo:${TANGO_POGO_VERSION} - container_name: ${CONTAINER_NAME_PREFIX}pogo - networks: - - control - volumes: - - pogo:/home/tango - - ${XAUTHORITY_MOUNT} - - ..:/opt/lofar/tango:rw - - ${HOME}:/hosthome:rw - environment: - - XAUTHORITY=${XAUTHORITY} - - DISPLAY=${DISPLAY} diff --git a/docker-compose/tango.yml b/docker-compose/tango.yml index 19500fca1..0d3b5877c 100644 --- a/docker-compose/tango.yml +++ b/docker-compose/tango.yml @@ -68,3 +68,29 @@ services: syslog-format: rfc3164 tag: "{{.Name}}" restart: unless-stopped + + dsconfig: + image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-dsconfig:${TANGO_DSCONFIG_VERSION} + container_name: ${CONTAINER_NAME_PREFIX}dsconfig + networks: + - control + depends_on: + - databaseds + environment: + - TANGO_HOST=${TANGO_HOST} + command: > + sh -c "wait-for-it.sh ${TANGO_HOST} --timeout=30 --strict -- + json2tango -w -a -u /tango-archiver/data/archiver-devices.json && + sleep infinity" + volumes: + - ..:/opt/lofar/tango:rw + - ${HOME}:/hosthome + - ../docker/tango/tango-archiver:/tango-archiver + logging: + driver: syslog + options: + syslog-address: udp://${LOG_HOSTNAME}:1514 + syslog-format: rfc3164 + tag: "{{.Name}}" + restart: unless-stopped + diff --git a/docker-compose/tangotest.yml b/docker-compose/tangotest.yml deleted file mode 100644 index a97290d48..000000000 --- a/docker-compose/tangotest.yml +++ /dev/null @@ -1,29 +0,0 @@ -# -# Docker compose file for TANGO test device server. -# -# Defines: -# - tangotest: TANGO test device server -# -# Requires: -# - tango.yml -# -version: '2' - -services: - tangotest: - image: ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_USER}/tango-java:${TANGO_JAVA_VERSION} - container_name: ${CONTAINER_NAME_PREFIX}tangotest - networks: - - control - environment: - - TANGO_HOST=${TANGO_HOST} - entrypoint: - - /usr/local/bin/wait-for-it.sh - - ${TANGO_HOST} - - --timeout=30 - - --strict - - -- - - /usr/local/bin/TangoTest - - test - restart: unless-stopped - -- GitLab