Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
jive.yml 1006 B
#
# 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: ${DOCKER_REGISTRY_HOST}/${DOCKER_REGISTRY_USER}/tango-java:latest
    container_name: ${CONTAINER_NAME_PREFIX}jive
    network_mode: host
    volumes:
      - ${XAUTHORITY_MOUNT}
      - ${TANGO_LOFAR_CONTAINER_MOUNT}
      - ${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