Dockerfile.dev 1.33 KB
Newer Older
Steffen Vogel's avatar
Steffen Vogel committed
1
FROM fedora:29
Steffen Vogel's avatar
fix CI    
Steffen Vogel committed
2
3
4
5
6
7
8
9
10
11

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"
12

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

RUN dnf -y update

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

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

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

46
ENV LD_LIBRARY_PATH /usr/local/lib64
47

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

Steffen Vogel's avatar
Steffen Vogel committed
51
# Activate Jupyter extensions
52
RUN dnf -y --refresh install npm
Steffen Vogel's avatar
Steffen Vogel committed
53
54
55
RUN jupyter nbextension enable --py widgetsnbextension
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager

56
EXPOSE 8888