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

L2SS-302: Explicitly expose our devices on their own unique ports, and tell...

L2SS-302: Explicitly expose our devices on their own unique ports, and tell CORBA what to listen on and how others can reach them
parent 9d6285dd
No related branches found
No related tags found
1 merge request!79L2SS-302: Explicitly expose our devices on their own unique ports, and configure CORBA explicitly
...@@ -21,6 +21,9 @@ ATTACH_COMPOSE_FILE_ARGS := $(foreach yml,$(filter-out tango.yml,$(COMPOSE_FILES ...@@ -21,6 +21,9 @@ ATTACH_COMPOSE_FILE_ARGS := $(foreach yml,$(filter-out tango.yml,$(COMPOSE_FILES
# But we allow to overwrite it. # But we allow to overwrite it.
NETWORK_MODE ?= tangonet NETWORK_MODE ?= tangonet
# Host name through which others can reach our control interfaces
HOSTNAME ?= $(shell hostname -f)
# If the first make argument is "start" or "stop"... # If the first make argument is "start" or "stop"...
ifeq (start,$(firstword $(MAKECMDGOALS))) ifeq (start,$(firstword $(MAKECMDGOALS)))
SERVICE_TARGET = true SERVICE_TARGET = true
...@@ -105,6 +108,7 @@ endif ...@@ -105,6 +108,7 @@ endif
DOCKER_COMPOSE_ARGS := DISPLAY=$(DISPLAY) \ DOCKER_COMPOSE_ARGS := DISPLAY=$(DISPLAY) \
XAUTHORITY=$(XAUTHORITY) \ XAUTHORITY=$(XAUTHORITY) \
TANGO_HOST=$(TANGO_HOST) \ TANGO_HOST=$(TANGO_HOST) \
HOSTNAME=$(HOSTNAME) \
NETWORK_MODE=$(NETWORK_MODE) \ NETWORK_MODE=$(NETWORK_MODE) \
XAUTHORITY_MOUNT=$(XAUTHORITY_MOUNT) \ XAUTHORITY_MOUNT=$(XAUTHORITY_MOUNT) \
TANGO_LOFAR_CONTAINER_MOUNT=$(TANGO_LOFAR_CONTAINER_MOUNT) \ TANGO_LOFAR_CONTAINER_MOUNT=$(TANGO_LOFAR_CONTAINER_MOUNT) \
......
...@@ -24,6 +24,8 @@ services: ...@@ -24,6 +24,8 @@ services:
container_name: ${CONTAINER_NAME_PREFIX}device-pcc container_name: ${CONTAINER_NAME_PREFIX}device-pcc
networks: networks:
- control - control
ports:
- "5700:5700" # unique port for this DS
volumes: volumes:
- ${TANGO_LOFAR_CONTAINER_MOUNT} - ${TANGO_LOFAR_CONTAINER_MOUNT}
environment: environment:
...@@ -34,5 +36,7 @@ services: ...@@ -34,5 +36,7 @@ services:
- --timeout=30 - --timeout=30
- --strict - --strict
- -- - --
- python3 -u ${TANGO_LOFAR_CONTAINER_DIR}/devices/devices/pcc.py LTS -v # configure CORBA to _listen_ on 0:port, but tell others we're _reachable_ through ${HOSTNAME}:port, since CORBA
# can't know about our Docker port forwarding
- python3 -u ${TANGO_LOFAR_CONTAINER_DIR}/devices/devices/pcc.py LTS -v -ORBendPoint giop:tcp:0:5700 -ORBendPointPublish giop:tcp:${HOSTNAME}:5700
restart: on-failure restart: on-failure
...@@ -24,6 +24,8 @@ services: ...@@ -24,6 +24,8 @@ services:
container_name: ${CONTAINER_NAME_PREFIX}device-sdp container_name: ${CONTAINER_NAME_PREFIX}device-sdp
networks: networks:
- control - control
ports:
- "5701:5701" # unique port for this DS
volumes: volumes:
- ${TANGO_LOFAR_CONTAINER_MOUNT} - ${TANGO_LOFAR_CONTAINER_MOUNT}
environment: environment:
...@@ -34,5 +36,7 @@ services: ...@@ -34,5 +36,7 @@ services:
- --timeout=30 - --timeout=30
- --strict - --strict
- -- - --
- python3 -u ${TANGO_LOFAR_CONTAINER_DIR}/devices/devices/sdp/sdp.py LTS -v # configure CORBA to _listen_ on 0:port, but tell others we're _reachable_ through ${HOSTNAME}:port, since CORBA
# can't know about our Docker port forwarding
- python3 -u ${TANGO_LOFAR_CONTAINER_DIR}/devices/devices/sdp/sdp.py LTS -v -ORBendPoint giop:tcp:0:5701 -ORBendPointPublish giop:tcp:${HOSTNAME}:5701
restart: on-failure restart: on-failure
...@@ -26,7 +26,8 @@ services: ...@@ -26,7 +26,8 @@ services:
- control - control
- data - data
ports: ports:
- 5001:5001/udp - "5001:5001/udp" # port to receive SST UDP packets on
- "5702:5702" # unique port for this DS
volumes: volumes:
- ${TANGO_LOFAR_CONTAINER_MOUNT} - ${TANGO_LOFAR_CONTAINER_MOUNT}
environment: environment:
...@@ -37,5 +38,7 @@ services: ...@@ -37,5 +38,7 @@ services:
- --timeout=30 - --timeout=30
- --strict - --strict
- -- - --
- python3 -u ${TANGO_LOFAR_CONTAINER_DIR}/devices/devices/sdp/sst.py LTS -v # configure CORBA to _listen_ on 0:port, but tell others we're _reachable_ through ${HOSTNAME}:port, since CORBA
# can't know about our Docker port forwarding
- python3 -u ${TANGO_LOFAR_CONTAINER_DIR}/devices/devices/sdp/sst.py LTS -v -ORBendPoint giop:tcp:0:5702 -ORBendPointPublish giop:tcp:${HOSTNAME}:5702
restart: on-failure restart: on-failure
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment