diff --git a/docker-compose/pypcc-sim.yml b/docker-compose/pypcc-sim.yml new file mode 100644 index 0000000000000000000000000000000000000000..94c8e9f5874a532036f122351773378b940b4833 --- /dev/null +++ b/docker-compose/pypcc-sim.yml @@ -0,0 +1,18 @@ +# +# Docker compose file that launches a PyPCC simulator +# +# Defines: +# - pypcc-sim +# +version: '2' + +services: + pypcc-sim: + build: + context: pypcc-sim + container_name: ${CONTAINER_NAME_PREFIX}pypcc-sim + network_mode: ${NETWORK_MODE} + volumes: + - ${HOME}:/hosthome + ports: + - "4848:4848" diff --git a/docker-compose/pypcc-sim/Dockerfile b/docker-compose/pypcc-sim/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..994a20508ad98de3fd0c93da323e911858eae85d --- /dev/null +++ b/docker-compose/pypcc-sim/Dockerfile @@ -0,0 +1,11 @@ +FROM ubuntu:20.04 + +RUN apt-get update && apt-get install -y python3 python3-pip python3-yaml git + +RUN pip3 install opcua numpy + +RUN git clone https://git.astron.nl/lofar2.0/pypcc +RUN cd pypcc && touch pylibi2c.py + +WORKDIR /pypcc +CMD ["python3","fake-opcuaserv.py"]