Commit 400c8c78 authored by Markus Mirz's avatar Markus Mirz
Browse files

add docker without fein

parent f7ddb80a
......@@ -12,8 +12,6 @@ LABEL \
org.label-schema.url = "http://fein-aachen.org/projects/dpsim/" \
org.label-schema.vcs-url = "https://git.rwth-aachen.de/acs/core/simulation/DPsim"
ADD https://packages.fein-aachen.org/fedora/fein.repo /etc/yum.repos.d/
RUN dnf -y update
# Toolchain
......@@ -36,9 +34,6 @@ RUN dnf --refresh -y install \
spdlog-devel \
graphviz-devel \
sundials-devel \
libcimpp16v29a \
libvillas-devel-${VILLAS_VERSION} \
villas-node-${VILLAS_VERSION} \
gsl-devel
# Install some debuginfos
......@@ -58,4 +53,28 @@ RUN dnf -y --refresh install npm
RUN jupyter nbextension enable --py widgetsnbextension
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager
# VILLAS dependencies
RUN dnf -y install \
openssl-devel \
libuuid-devel \
libconfig-devel \
libnl3-devel \
libcurl-devel \
jansson-devel \
libwebsockets-devel \
mosquitto-devel
# FEIN libraries
RUN cd /tmp && \
git clone --recurse-submodules https://github.com/CIM-IEC/libcimpp.git && \
mkdir -p libcimpp/build && cd libcimpp/build && \
cmake -DCMAKE_INSTALL_LIBDIR=/usr/local/lib64 -DUSE_CIM_VERSION=IEC61970_16v29a -DBUILD_SHARED_LIBS=ON -DBUILD_ARABICA_EXAMPLES=OFF -DARABICA_XML_BACKEND=USE_EXPAT .. && make -j$(nproc) install && \
rm -rf /tmp/libcimpp
RUN cd /tmp && \
git clone --recurse-submodules https://git.rwth-aachen.de/acs/public/villas/node.git villasnode && \
mkdir -p villasnode/build && cd villasnode/build && \
cmake -DWITH_NODE_ETHERCAT=OFF -DCMAKE_INSTALL_LIBDIR=/usr/local/lib64 .. && make -j$(nproc) install && \
rm -rf /tmp/villasnode
EXPOSE 8888
FROM fedora:29
ARG VILLAS_VERSION=0.8.0
LABEL \
org.label-schema.schema-version = "1.0" \
org.label-schema.name = "DPsim" \
org.label-schema.license = "GPL-3.0" \
org.label-schema.vendor = "Institute for Automation of Complex Power Systems, RWTH Aachen University" \
org.label-schema.author.name = "Steffen Vogel" \
org.label-schema.author.email = "stvogel@eonerc.rwth-aachen.de" \
org.label-schema.url = "http://fein-aachen.org/projects/dpsim/" \
org.label-schema.vcs-url = "https://git.rwth-aachen.de/acs/core/simulation/DPsim"
ADD https://packages.fein-aachen.org/fedora/fein.repo /etc/yum.repos.d/
RUN dnf -y update
# Toolchain
RUN dnf -y install \
git clang gdb ccache \
redhat-rpm-config \
rpmdevtools \
make cmake ninja-build \
doxygen \
graphviz \
pandoc \
python3-pip \
pkg-config
# Dependencies
RUN dnf --refresh -y install \
python3-devel \
eigen3-devel \
expat-devel \
spdlog-devel \
graphviz-devel \
sundials-devel \
libcimpp16v29a \
libvillas-devel-${VILLAS_VERSION} \
villas-node-${VILLAS_VERSION} \
gsl-devel
# Install some debuginfos
RUN dnf -y debuginfo-install \
python3
ENV LD_LIBRARY_PATH /usr/local/lib64
ADD requirements.txt .
RUN pip3 install -r requirements.txt
# Remove this part in the future and use dedicated jupyter Dockerfile
# Activate Jupyter extensions
ADD requirements-jupyter.txt .
RUN pip3 install -r requirements-jupyter.txt
RUN dnf -y --refresh install npm
RUN jupyter nbextension enable --py widgetsnbextension
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager
EXPOSE 8888
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment