aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorLibravatar Kristóf Marussy <kristof@marussy.com>2021-03-25 00:51:20 +0100
committerLibravatar Kristóf Marussy <kristof@marussy.com>2021-03-25 00:51:20 +0100
commita27fbebd4d022a4239f9479badf45cba0cfd8144 (patch)
treeb44c1bad608018793c8321dbfd32ad532cb53732 /Dockerfile
downloaddftcalc-storm-a27fbebd4d022a4239f9479badf45cba0cfd8144.tar.gz
dftcalc-storm-a27fbebd4d022a4239f9479badf45cba0cfd8144.tar.zst
dftcalc-storm-a27fbebd4d022a4239f9479badf45cba0cfd8144.zip
Initial commit
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..b50d20e
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,26 @@
1FROM movesrwth/storm:travis
2
3# Patch enabled floating-point calculation with Storm
4COPY storm-non-exact.patch /opt
5
6RUN apt-get update && \
7 apt-get install -y bison flex libyaml-cpp-dev openjdk-11-jdk-headless && \
8 rm -rf /var/lib/apt/lists/* && \
9 git clone --depth=1 https://github.com/utwente-fmt/dftcalc.git /opt/dftcalc && \
10 cd /opt/dftcalc && \
11 git apply /opt/storm-non-exact.patch && \
12 mkdir build && \
13 cd build && \
14 cmake -DDFTROOT=/usr .. && \
15 make && \
16 make install && \
17 git clone --depth=1 https://github.com/utwente-fmt/DFTRES /opt/DFTRES && \
18 cd /opt/DFTRES && \
19 make jar JFLAGS="-Xlint:deprecation -g -encoding UTF-8"
20
21# Place Storm executable on the PATH so that dftcalc can find it
22ENV PATH="$PATH:/opt/storm/build/bin"
23
24# Tell dftcalc where we have DFTRES.jar
25ENV DFTRES=/opt/DFTRES
26