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

L2SS-230: Use nproc for parallel make, pull fixed tag for open62541 opc-ua lib

parent b17b6577
Branches
Tags
1 merge request!48Resolve L2SS-230 "Add sdp sim"
...@@ -5,11 +5,11 @@ RUN apt-get update && \ ...@@ -5,11 +5,11 @@ RUN apt-get update && \
apt-get clean apt-get clean
# Install OPC-UA lib # Install OPC-UA lib
RUN git clone --depth 1 https://github.com/open62541/open62541 && \ RUN git clone --depth 1 --branch 1.2 https://github.com/open62541/open62541 && \
cd /open62541 && \ cd /open62541 && \
git submodule update --init --recursive && \ git submodule update --init --recursive && \
mkdir build && cd build && \ mkdir build && cd build && \
cmake .. -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo -DUA_NAMESPACE_ZERO=FULL -DUA_MULTITHREADING=100 && make -j 4 install 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 # Update shared library cache
RUN ldconfig RUN ldconfig
...@@ -20,7 +20,7 @@ RUN cd / && git clone --depth 1 --branch master https://git.astron.nl/lofar2.0/s ...@@ -20,7 +20,7 @@ RUN cd / && git clone --depth 1 --branch master https://git.astron.nl/lofar2.0/s
RUN cd /sdptr && \ RUN cd /sdptr && \
autoreconf -v -f -i && \ autoreconf -v -f -i && \
./configure && \ ./configure && \
make -j 4 install bash -c "make -j `nproc` install"
WORKDIR /sdptr/src WORKDIR /sdptr/src
CMD ["sdptr", "--configfile=uniboard.conf", "--nodaemon"] 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