forked from moves-rwth/storm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
62 lines (44 loc) · 1.56 KB
/
Dockerfile
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
61
62
# Base Dockerfile for using Storm
#################################
# The Docker image can be built by executing:
# docker build -t yourusername/storm .
FROM movesrwth/storm-basesystem:latest
MAINTAINER Matthias Volk <[email protected]>
# Specify number of threads to use for parallel compilation
# This number can be set from the commandline with:
# --build-arg no_threads=<value>
ARG no_threads=1
# Build Carl
############
# Explicitly build the Carl library
# This is needed when using pycarl/stormpy later on
WORKDIR /opt/
# Obtain Carl from public repository
RUN git clone -b master14 https://github.com/ths-rwth/carl.git
# Switch to build directory
RUN mkdir -p /opt/carl/build
WORKDIR /opt/carl/build
# Configure Carl
RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DUSE_CLN_NUMBERS=ON -DUSE_GINAC=ON -DTHREAD_SAFE=ON
# Build Carl library
RUN make lib_carl -j $no_threads
# Build Storm
#############
RUN mkdir /opt/storm
WORKDIR /opt/storm
# Copy the content of the current local Storm repository into the Docker image
COPY . .
# Switch to build directory
RUN mkdir -p /opt/storm/build
WORKDIR /opt/storm/build
# Configure Storm
RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DSTORM_DEVELOPER=OFF -DSTORM_LOG_DISABLE_DEBUG=ON -DSTORM_PORTABLE=ON -DSTORM_USE_SPOT_SHIPPED=ON
# Build external dependencies of Storm
RUN make resources -j $no_threads
# Build Storm binary
RUN make storm -j $no_threads
# Build additional binaries of Storm
# (This can be skipped or adapted dependending on custom needs)
RUN make binaries -j $no_threads
# Set path
ENV PATH="/opt/storm/build/bin:$PATH"