-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
61 lines (47 loc) · 1.81 KB
/
Dockerfile
File metadata and controls
61 lines (47 loc) · 1.81 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# the docker image can be built by executing:
# docker build -t <image-name> .
# to enable multi-thread compilation, use --build-arg threads=<value>
FROM ubuntu
MAINTAINER Francesco Pontiggia <francesco.pontiggia@tuwien.ac.at>
ARG threads=1
# execute bash when running the container
ENTRYPOINT ["/bin/bash"]
# to prevent texlive from asking our geographical area
#ENV DEBIAN_FRONTEND noninteractive
# main directory
RUN apt-get -y update
RUN apt -y install build-essential git automake cmake libboost-all-dev libcln-dev libgmp-dev libginac-dev libglpk-dev libhwloc-dev libz3-dev libxerces-c-dev libeigen3-dev
#RUN apt -y install texlive-latex-extra
RUN apt -y install maven uuid-dev python3-dev libffi-dev libssl-dev python3-pip python3-venv unzip nano git
# download everything
# using --depth 1 to make the download faster and the image smaller
RUN git clone --depth 1 --branch main https://github.com/francescopont/HyperProject HyperPaynt
RUN git clone --depth 1 --branch master https://github.com/francescopont/HyperProb.git HyperProb
WORKDIR /HyperPaynt/prerequisites
RUN unzip downloads/carl.zip
RUN rm -rf carl
RUN mv carl-master14 carl
RUN unzip downloads/pycarl.zip
RUN rm -rf pycarl
RUN mv pycarl-2.0.5 pycarl
# python environment
RUN pip3 install scipy pysmt z3-solver click termcolor tabulate lark pytest-runner
#carl
WORKDIR /HyperPaynt/prerequisites/carl/build
RUN cmake -DUSE_CLN_NUMBERS=ON -DUSE_GINAC=ON -DTHREAD_SAFE=ON ..
RUN make lib_carl --jobs
#pycarl
WORKDIR /HyperPaynt/prerequisites/pycarl
RUN python3 setup.py build_ext --disable-parser develop
# storm
WORKDIR /HyperPaynt/storm/build
RUN cmake ..
RUN make storm-main storm-synthesis
# stormpy
WORKDIR /HyperPaynt/stormpy
RUN python3 setup.py build_ext develop
# paynt
WORKDIR /HyperPaynt/paynt
RUN python3 setup.py install
#initial directory
WORKDIR /HyperPaynt