Skip to content
Snippets Groups Projects
Commit 70fd5376 authored by Corné Lukken's avatar Corné Lukken
Browse files

L2SS-205: sdptr based simulators use externally build docker image

parent 2b5f14d1
No related branches found
No related tags found
1 merge request!183Docker image building & pushing with CI pipeline caching
...@@ -10,6 +10,9 @@ services: ...@@ -10,6 +10,9 @@ services:
apsct-sim: apsct-sim:
build: build:
context: pypcc-sim-base context: pypcc-sim-base
args:
- LOCAL_DOCKER_REGISTRY_HOST=${LOCAL_DOCKER_REGISTRY_HOST}
- LOCAL_DOCKER_REGISTRY_LOFAR=${LOCAL_DOCKER_REGISTRY_LOFAR}
container_name: ${CONTAINER_NAME_PREFIX}apsct-sim container_name: ${CONTAINER_NAME_PREFIX}apsct-sim
networks: networks:
- control - control
......
...@@ -10,6 +10,9 @@ services: ...@@ -10,6 +10,9 @@ services:
apspu-sim: apspu-sim:
build: build:
context: pypcc-sim-base context: pypcc-sim-base
args:
- LOCAL_DOCKER_REGISTRY_HOST=${LOCAL_DOCKER_REGISTRY_HOST}
- LOCAL_DOCKER_REGISTRY_LOFAR=${LOCAL_DOCKER_REGISTRY_LOFAR}
container_name: ${CONTAINER_NAME_PREFIX}apspu-sim container_name: ${CONTAINER_NAME_PREFIX}apspu-sim
networks: networks:
- control - control
......
...@@ -12,7 +12,7 @@ services: ...@@ -12,7 +12,7 @@ services:
context: pypcc-sim-base context: pypcc-sim-base
args: args:
- LOCAL_DOCKER_REGISTRY_HOST=${LOCAL_DOCKER_REGISTRY_HOST} - LOCAL_DOCKER_REGISTRY_HOST=${LOCAL_DOCKER_REGISTRY_HOST}
- LOCAL_DOCKER_REGISTRY_THIRD_PARTY=${LOCAL_DOCKER_REGISTRY_THIRD_PARTY} - LOCAL_DOCKER_REGISTRY_LOFAR=${LOCAL_DOCKER_REGISTRY_LOFAR}
container_name: ${CONTAINER_NAME_PREFIX}recv-sim container_name: ${CONTAINER_NAME_PREFIX}recv-sim
networks: networks:
- control - control
......
...@@ -10,6 +10,9 @@ services: ...@@ -10,6 +10,9 @@ services:
sdptr-sim: sdptr-sim:
build: build:
context: sdptr-sim context: sdptr-sim
args:
- LOCAL_DOCKER_REGISTRY_HOST=${LOCAL_DOCKER_REGISTRY_HOST}
- LOCAL_DOCKER_REGISTRY_LOFAR=${LOCAL_DOCKER_REGISTRY_LOFAR}
container_name: ${CONTAINER_NAME_PREFIX}sdptr-sim container_name: ${CONTAINER_NAME_PREFIX}sdptr-sim
networks: networks:
- control - control
......
FROM ubuntu:20.04 ARG LOCAL_DOCKER_REGISTRY_HOST
ARG LOCAL_DOCKER_REGISTRY_LOFAR
# Install build tools for sdptr and the C language OPC-UA lib FROM ${LOCAL_DOCKER_REGISTRY_HOST}/${LOCAL_DOCKER_REGISTRY_LOFAR}/sdptr:latest
RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y software-properties-common && \
DEBIAN_FRONTEND=noninteractive add-apt-repository ppa:open62541-team/ppa && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y autoconf automake git make g++ build-essential pkg-config libboost-dev libboost-regex-dev libboost-system-dev libboost-program-options-dev libopen62541-1-dev libopen62541-1-tools && \
apt-get clean
# 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"
COPY simulator.conf /sdptr/src/simulator.conf COPY simulator.conf /sdptr/src/simulator.conf
......
...@@ -10,6 +10,9 @@ services: ...@@ -10,6 +10,9 @@ services:
unb2-sim: unb2-sim:
build: build:
context: pypcc-sim-base context: pypcc-sim-base
args:
- LOCAL_DOCKER_REGISTRY_HOST=${LOCAL_DOCKER_REGISTRY_HOST}
- LOCAL_DOCKER_REGISTRY_LOFAR=${LOCAL_DOCKER_REGISTRY_LOFAR}
container_name: ${CONTAINER_NAME_PREFIX}unb2-sim container_name: ${CONTAINER_NAME_PREFIX}unb2-sim
networks: networks:
- control - control
......
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