# # Docker compose file that launches an interactive iTango session. # # Connect to the interactive session with 'docker attach itango'. # Disconnect with the Docker deattach sequence: <CTRL>+<P> <CTRL>+<Q> # # Defines: # - itango: iTango interactive session # # Requires: # - lofar-device-base.yml # version: '2' services: device-pcc: image: device-pcc # build explicitly, as docker-compose does not understand a local image # being shared among services. build: context: lofar-device-base args: SOURCE_IMAGE: ${DOCKER_REGISTRY_HOST}/${DOCKER_REGISTRY_USER}/tango-itango:9.3.3.7 container_name: ${CONTAINER_NAME_PREFIX}device-pcc network_mode: ${NETWORK_MODE} volumes: - ${TANGO_LOFAR_CONTAINER_MOUNT} environment: - TANGO_HOST=${TANGO_HOST} entrypoint: - /usr/local/bin/wait-for-it.sh - ${TANGO_HOST} - --timeout=30 - --strict - -- - python3 -u ${TANGO_LOFAR_CONTAINER_DIR}/devices/PCC.py LTS -v restart: on-failure