Commit b2a3db76 authored by Markus Mirz's avatar Markus Mirz
Browse files

remove deprecated dockerfiles


Former-commit-id: 5fa4aac1
parent ab3aaac8
......@@ -22,7 +22,7 @@ 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/fein.repo /etc/yum.repos.d/
ADD https://packages.fein-aachen.org/redhat/fein.repo /etc/yum.repos.d/
COPY --from=builder /dpsim/build/*.rpm /tmp
RUN dnf -y install /tmp/*.rpm
......
......@@ -10,7 +10,7 @@ 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/fein.repo /etc/yum.repos.d/
ADD https://packages.fein-aachen.org/redhat/fein.repo /etc/yum.repos.d/
RUN dnf -y update
......
# rwthacs/dpsim-dev is built by dpsim-git/Packaging/Docker/Dockerfile.dev
ARG DOCKER_TAG=latest
FROM rwthacs/dpsim-dev:${DOCKER_TAG}
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://villas.fein-aachen.org/packages/villas.repo /etc/yum.repos.d/
RUN pip3 install jupyterlab
EXPOSE 8888
\ No newline at end of file
ARG BASE_IMAGE=jupyter/minimal-notebook:e1677043235c
ARG JUPYTERHUB_VERSION=0.8.1
FROM ${BASE_IMAGE} AS builder
USER root
RUN apt-get -y update &&\
apt-get -y install \
apt-transport-https ca-certificates
RUN echo "deb https://packages.fein-aachen.org/debian/ stable main" > /etc/apt/sources.list.d/fein.list
RUN apt-get -y update
# Toolchain
RUN apt-get -y install \
build-essential \
git make cmake \
doxygen \
graphviz \
libeigen3-dev
# Python Packages
ADD requirements.txt .
RUN python3 -m pip install -r requirements.txt
COPY Source/ /dpsim/Source/
COPY Examples/ /dpsim/Examples/
COPY Documentation/ /dpsim/Documentation/
COPY CMake/ /dpsim/CMake/
COPY CMakeLists.txt setup.py COPYING.md README.md /dpsim/
RUN ls -l /dpsim/
WORKDIR /dpsim
ENV CMAKE_INCLUDE_PATH=/opt/conda/include/ \
CMAKE_LIBRARY_PATH=/opt/conda/lib/
RUN python3 setup.py bdist_wheel --dist-dir /tmp
#
# Build notebook image
#
FROM ${BASE_IMAGE}
# We install a couple of dependencies manually
# to make use of Dockers caching
RUN python3 -m pip install \
acs-dataprocessing \
pandas \
matplotlib
# Install DPsim
COPY --from=builder /tmp/*.whl /tmp
RUN python3 -m pip install /tmp/*.whl
# Copy notebooks
COPY Documentation/Notebooks/ /home/$NB_USER/work/DPsim/
RUN ls -l /home/$NB_USER/work/DPsim/
USER root
RUN fix-permissions /home/$NB_USER
USER $NB_USER
WORKDIR /home/$NB_USER/work/DPsim
RUN rm -rf CMakeLists.txt Logs
\ No newline at end of file
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