Dockerfile.dev 1.54 KB
Newer Older
Steffen Vogel's avatar
Steffen Vogel committed
1
FROM fedora:29
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
2

Markus Mirz's avatar
Markus Mirz committed
3
4
ARG VILLAS_VERSION=0.8.0

Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
5
6
7
8
9
10
11
12
13
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"
14

Steffen Vogel's avatar
Steffen Vogel committed
15
ADD https://packages.fein-aachen.org/fedora/fein.repo /etc/yum.repos.d/
Georg Martin Reinke's avatar
fix CI    
Georg Martin Reinke committed
16
17
18

RUN dnf -y update

Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
19
# Toolchain
20
RUN dnf -y install \
21
	git clang gdb ccache \
Steffen Vogel's avatar
Steffen Vogel committed
22
	redhat-rpm-config \
23
	rpmdevtools \
24
	make cmake ninja-build \
Steffen Vogel's avatar
Steffen Vogel committed
25
	doxygen \
Steffen Vogel's avatar
Steffen Vogel committed
26
	graphviz \
Steffen Vogel's avatar
Steffen Vogel committed
27
	pandoc \
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
28
29
	python3-pip \
	pkg-config
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
30
31

# Dependencies
Steffen Vogel's avatar
Steffen Vogel committed
32
RUN dnf --refresh -y install \
33
	python3-devel \
34
	eigen3-devel \
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
35
	expat-devel \
Steffen Vogel's avatar
Steffen Vogel committed
36
	spdlog-devel \
37
	graphviz-devel \
38
	sundials-devel \
39
	libcimpp16v29a \	
Markus Mirz's avatar
Markus Mirz committed
40
41
	libvillas-devel-${VILLAS_VERSION} \
	villas-node-${VILLAS_VERSION} \
Jan Dinkelbach's avatar
Jan Dinkelbach committed
42
	gsl-devel
Georg Martin Reinke's avatar
Georg Martin Reinke committed
43

Steffen Vogel's avatar
Steffen Vogel committed
44
45
46
47
# Install some debuginfos
RUN dnf -y debuginfo-install \
	python3

48
ENV LD_LIBRARY_PATH /usr/local/lib64
49

Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
50
ADD requirements.txt .
51
RUN pip3 install -r requirements.txt
52

53
# Remove this part in the future and use dedicated jupyter Dockerfile
Steffen Vogel's avatar
Steffen Vogel committed
54
# Activate Jupyter extensions
55
ADD requirements-jupyter.txt .
56
RUN pip3 install -r requirements-jupyter.txt
57
RUN dnf -y --refresh install npm
Steffen Vogel's avatar
Steffen Vogel committed
58
59
60
RUN jupyter nbextension enable --py widgetsnbextension
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager

61
EXPOSE 8888