Skip to content

Commit

Permalink
update VILLASnode version in Dockerfiles
Browse files Browse the repository at this point in the history
Signed-off-by: Niklas Eiling <[email protected]>
  • Loading branch information
n-eiling committed Aug 26, 2024
1 parent 5f40f09 commit cb78369
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
#include <dpsim-models/Solver/DAEInterface.h>
#include <dpsim-models/Solver/MNAInterface.h>
#include <filesystem>
#include <villas/formats/protobuf.hpp>
#include <villas/sample.hpp>

namespace CPS {
Expand Down
5 changes: 4 additions & 1 deletion dpsim-models/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ list(APPEND MODELS_SOURCES
DP/DP_Ph1_Resistor.cpp
DP/DP_Ph1_Transformer.cpp
DP/DP_Ph1_VoltageSource.cpp
DP/DP_Ph1_ProfileVoltageSource.cpp
DP/DP_Ph1_VoltageSourceRamp.cpp
DP/DP_Ph1_VoltageSourceNorton.cpp
DP/DP_Ph1_Switch.cpp
Expand Down Expand Up @@ -177,6 +176,10 @@ if(WITH_GSL)
list(APPEND MODELS_LIBRARIES ${GSL_LIBRARIES})
endif()

if(WITH_VILLAS)
list(APPEND MODELS_SOURCES DP/DP_Ph1_ProfileVoltageSource.cpp)
endif()

target_link_libraries(dpsim-models PUBLIC ${MODELS_LIBRARIES})
target_include_directories(dpsim-models PUBLIC ${MODELS_INCLUDE_DIRS})
target_sources(dpsim-models PRIVATE ${MODELS_SOURCES})
Expand Down
2 changes: 1 addition & 1 deletion dpsim-models/src/DP/DP_Ph1_ProfileVoltageSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <iostream>
#include <memory>
#include <villas/format.hpp>
#include <villas/formats/protobuf.hpp>
#include <villas/formats/villas.pb-c.h>
#include <villas/signal_list.hpp>
#include <villas/signal_type.hpp>

Expand Down
5 changes: 3 additions & 2 deletions packaging/Docker/Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM fedora:36 AS base

ARG CIM_VERSION=CGMES_2.4.15_16FEB2016
ARG VILLAS_VERSION=411b0ad49e2629ad41c6918d2a6c51e9a72220b4
ARG VILLAS_VERSION=18cdd2a6364d05fbf413ca699616cd324abfcb54

ARG CMAKE_OPTS
ARG MAKE_OPTS=-j4
Expand Down Expand Up @@ -65,7 +65,8 @@ RUN dnf -y install \
RUN dnf -y install \
mosquitto-devel \
libconfig-devel \
libnl3-devel
libnl3-devel \
protobuf-devel

# Python dependencies
ADD requirements.txt .
Expand Down
5 changes: 3 additions & 2 deletions packaging/Docker/Dockerfile.dev-debian
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM debian:11

ARG CIM_VERSION=CGMES_2.4.15_16FEB2016
ARG VILLAS_VERSION=411b0ad49e2629ad41c6918d2a6c51e9a72220b4
ARG VILLAS_VERSION=18cdd2a6364d05fbf413ca699616cd324abfcb54

ARG CMAKE_OPTS
ARG MAKE_OPTS=-j4
Expand Down Expand Up @@ -59,7 +59,8 @@ RUN apt-get -y install \
RUN apt-get -y install \
libmosquitto-dev \
libconfig-dev \
libnl-3-dev
libnl-3-dev \
protobuf-dev

## Install libiec61850 from source
RUN cd /tmp && \
Expand Down
21 changes: 11 additions & 10 deletions packaging/Docker/Dockerfile.dev-rocky
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ RUN dnf -y install \
jansson-devel \
mosquitto-devel \
libjpeg-devel \
zlib-devel
zlib-devel \
protobuf-devel

# CUDARPC and dependencies
RUN dnf install -y \
Expand Down Expand Up @@ -116,15 +117,15 @@ RUN cd /tmp && \
# CIMpp and VILLASnode are installed here
ENV LD_LIBRARY_PATH="/usr/local/lib64:${LD_LIBRARY_PATH}"

# Python dependencies
ADD requirements.txt .
RUN pip3 install -U setuptools
RUN pip3 install -U wheel
RUN pip3 install -r requirements.txt
# # Python dependencies
# ADD requirements.txt .
# RUN pip3 install -U setuptools
# RUN pip3 install -U wheel
# RUN pip3 install -r requirements.txt

# Remove this part in the future and use dedicated Jupyter Dockerfile
# Activate Jupyter extensions
RUN dnf -y --refresh install npm
RUN pip3 install jupyter jupyter_contrib_nbextensions nbconvert nbformat
# # Remove this part in the future and use dedicated Jupyter Dockerfile
# # Activate Jupyter extensions
# RUN dnf -y --refresh install npm
# RUN pip3 install jupyter jupyter_contrib_nbextensions nbconvert nbformat

EXPOSE 8888
2 changes: 1 addition & 1 deletion packaging/Docker/Dockerfile.manylinux
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
FROM quay.io/pypa/manylinux_2_28_x86_64

ARG CIM_VERSION=CGMES_2.4.15_16FEB2016
ARG VILLAS_VERSION=411b0ad49e2629ad41c6918d2a6c51e9a72220b4
ARG VILLAS_VERSION=18cdd2a6364d05fbf413ca699616cd324abfcb54

ARG CMAKE_OPTS
ARG MAKE_OPTS=-j4
Expand Down

0 comments on commit cb78369

Please sign in to comment.