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

L2SS-358: Added APSCT and APSPU devices, their simulators. Added a common base...

L2SS-358: Added APSCT and APSPU devices, their simulators. Added a common base image for the pypcc2 simulators. Separated station-dependend configs into separate CDB files. Added OPC-UA node path prefix to support instances with different paths to their nodes.
parent 75ffb1c2
No related branches found
No related tags found
1 merge request!157L2SS-358: Get ready for Darkrai
# Create shortcuts for our devices # Create shortcuts for our devices
apsct = DeviceProxy("LTS/APSCT/1")
apspu = DeviceProxy("LTS/APSPU/1")
recv = DeviceProxy("LTS/RECV/1") recv = DeviceProxy("LTS/RECV/1")
sdp = DeviceProxy("LTS/SDP/1") sdp = DeviceProxy("LTS/SDP/1")
sst = DeviceProxy("LTS/SST/1") sst = DeviceProxy("LTS/SST/1")
...@@ -8,4 +10,4 @@ boot = DeviceProxy("LTS/Boot/1") ...@@ -8,4 +10,4 @@ boot = DeviceProxy("LTS/Boot/1")
docker = DeviceProxy("LTS/Docker/1") docker = DeviceProxy("LTS/Docker/1")
# Put them in a list in case one wants to iterate # Put them in a list in case one wants to iterate
devices = [recv, sdp, sst, xst, unb2, boot, docker] devices = [apsct, apspu, ecv, sdp, sst, xst, unb2, boot, docker]
...@@ -9,12 +9,9 @@ version: '2' ...@@ -9,12 +9,9 @@ version: '2'
services: services:
recv-sim: recv-sim:
build: build:
context: recv-sim context: pypcc-sim-base
container_name: ${CONTAINER_NAME_PREFIX}recv-sim container_name: ${CONTAINER_NAME_PREFIX}recv-sim
networks: networks:
- control - control
volumes: entrypoint: python3 pypcc2.py --simulator --port 4840 --config RECVTR
- ${HOME}:/hosthome restart: on-failure
ports:
- "4843:4843"
restart: unless-stopped
FROM ubuntu:20.04
COPY requirements.txt /requirements.txt
RUN apt-get update && apt-get install -y python3 python3-pip python3-yaml git && \
pip3 install -r requirements.txt && \
git clone --depth 1 --branch master https://git.astron.nl/lofar2.0/pypcc
WORKDIR /pypcc
CMD ["python3","pypcc2.py","--simulator","--port","4843"]
opcua
numpy
recordclass>=0.16,<0.16.1
\ No newline at end of file
...@@ -13,6 +13,4 @@ services: ...@@ -13,6 +13,4 @@ services:
container_name: ${CONTAINER_NAME_PREFIX}sdptr-sim container_name: ${CONTAINER_NAME_PREFIX}sdptr-sim
networks: networks:
- control - control
ports:
- "4840:4840"
restart: unless-stopped restart: unless-stopped
...@@ -9,12 +9,9 @@ version: '2' ...@@ -9,12 +9,9 @@ version: '2'
services: services:
unb2-sim: unb2-sim:
build: build:
context: unb2-sim context: pypcc-sim-base
container_name: ${CONTAINER_NAME_PREFIX}unb2-sim container_name: ${CONTAINER_NAME_PREFIX}unb2-sim
networks: networks:
- control - control
volumes: entrypoint: python3 pypcc2.py --simulator --port 4841 --config UNB2
- ${HOME}:/hosthome restart: on-failure
ports:
- "4844:4844"
restart: unless-stopped
FROM ubuntu:20.04
COPY requirements.txt /requirements.txt
RUN apt-get update && apt-get install -y python3 python3-pip python3-yaml git && \
pip3 install -r requirements.txt && \
git clone --depth 1 --branch master https://git.astron.nl/lofar2.0/pypcc
WORKDIR /pypcc
CMD ["python3","pypcc2.py","--simulator", "--port=4844", "--config=UNB2"]
#check if this file is necessary
opcua
numpy
recordclass>=0.16,<0.16.1
\ No newline at end of file
...@@ -11,7 +11,7 @@ fi ...@@ -11,7 +11,7 @@ fi
# Start and stop sequence # Start and stop sequence
cd "$LOFAR20_DIR/docker-compose" || exit 1 cd "$LOFAR20_DIR/docker-compose" || exit 1
make stop device-sdp device-recv device-sst device-unb2 device-xst sdptr-sim recv-sim unb2-sim make stop device-sdp device-recv device-sst device-unb2 device-xst sdptr-sim recv-sim unb2-sim apsct-sim apspu-sim
make start databaseds dsconfig jupyter elk make start databaseds dsconfig jupyter elk
# Give dsconfig and databaseds time to start # Give dsconfig and databaseds time to start
...@@ -21,7 +21,7 @@ sleep 15 ...@@ -21,7 +21,7 @@ sleep 15
"${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${LOFAR20_DIR}"/CDB/integration_ConfigDb.json "${LOFAR20_DIR}"/sbin/update_ConfigDb.sh "${LOFAR20_DIR}"/CDB/integration_ConfigDb.json
cd "$LOFAR20_DIR/docker-compose" || exit 1 cd "$LOFAR20_DIR/docker-compose" || exit 1
make start sdptr-sim recv-sim unb2-sim make start sdptr-sim recv-sim unb2-sim apsct-sim apspu-sim
# Give the simulators time to start # Give the simulators time to start
sleep 5 sleep 5
......
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