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

Merge branch 'L2SS-230-add-sdp-sim' into 'master'

Resolve L2SS-230 "Add sdp sim"

Closes L2SS-230

See merge request !48
parents 2fca02cc 29b4fbae
No related branches found
No related tags found
1 merge request!48Resolve L2SS-230 "Add sdp sim"
{
"servers": {
"SDP": {
"LTS": {
"SDP": {
"LTS/SDP/1": {
"properties": {
"OPC_Server_Name": [
"sdptr-sim"
],
"OPC_Server_Port": [
"4840"
],
"OPC_Time_Out": [
"5.0"
]
}
}
}
}
}
}
}
#
# Docker compose file that launches a SDP translator simulator
#
# Defines:
# - sdptr-sim
#
version: '2'
services:
sdptr-sim:
build:
context: sdptr-sim
container_name: ${CONTAINER_NAME_PREFIX}sdptr-sim
network_mode: ${NETWORK_MODE}
ports:
- "4840:4840"
restart: on-failure
FROM ubuntu:20.04
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y autoconf automake git make g++ build-essential pkg-config cmake python liburcu-dev libmbedtls-dev libsubunit-dev libboost-dev libboost-regex-dev libboost-system-dev libboost-program-options-dev && \
apt-get clean
# Install OPC-UA lib
RUN git clone --depth 1 --branch 1.2 https://github.com/open62541/open62541 && \
cd /open62541 && \
git submodule update --init --recursive && \
mkdir build && cd build && \
bash -c "cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_NAMESPACE_ZERO=FULL -DUA_MULTITHREADING=100 && make -j `nproc` install"
# Update shared library cache
RUN ldconfig
# Install SDPTR
RUN cd / && git clone --depth 1 --branch master https://git.astron.nl/lofar2.0/sdptr
RUN cd /sdptr && \
autoreconf -v -f -i && \
./configure && \
bash -c "make -j `nproc` install"
WORKDIR /sdptr/src
CMD ["sdptr", "--configfile=uniboard.conf", "--nodaemon"]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment