-
Notifications
You must be signed in to change notification settings - Fork 85
Expand file tree
/
Copy pathDockerfile
More file actions
83 lines (71 loc) · 2.37 KB
/
Dockerfile
File metadata and controls
83 lines (71 loc) · 2.37 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# Dockerfile for Storm
######################
# The Docker image can be built by executing:
# docker build -t yourusername/storm .
# A different base image can be set from the commandline with:
# --build-arg BASE_IMAGE=<new_base_image>
# Set base image
ARG BASE_IMAGE=movesrwth/storm-dependencies:latest
FROM $BASE_IMAGE
LABEL org.opencontainers.image.authors="[email protected]"
# Configuration arguments
#########################
# The arguments can be set from the commandline with:
# --build-arg <arg_name>=<value>
# Specify number of threads to use for parallel compilation
ARG no_threads=1
# CMake build type
ARG build_type=Release
# Carl tag to use
ARG carl_tag="14.34"
# Specify Storm configuration (ON/OFF)
ARG disable_cudd="OFF"
ARG disable_glpk="OFF"
ARG disable_gmm="OFF"
ARG disable_gurobi="OFF"
ARG disable_libarchive="OFF"
ARG disable_mathsat="OFF"
ARG disable_soplex="OFF"
ARG disable_spot="OFF"
ARG disable_sylvan="OFF"
ARG disable_xerces="OFF"
ARG disable_z3="OFF"
ARG developer="OFF"
ARG cln_exact="OFF"
ARG cln_ratfunc="ON"
ARG all_sanitizers="OFF"
# Specify additional CMake arguments for Storm
ARG cmake_args=""
# 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=$build_type \
-DSTORM_PORTABLE=ON \
-DSTORM_CARL_GIT_TAG=$carl_tag \
-DSTORM_DISABLE_CUDD=$disable_cudd \
-DSTORM_DISABLE_GLPK=$disable_glpk \
-DSTORM_DISABLE_GMM=$disable_gmm \
-DSTORM_DISABLE_GUROBI=$disable_gurobi \
-DSTORM_DISABLE_LIBARCHIVE=$disable_libarchive \
-DSTORM_DISABLE_MATHSAT=$disable_mathsat \
-DSTORM_DISABLE_SOPLEX=$disable_soplex \
-DSTORM_DISABLE_SPOT=$disable_spot \
-DSTORM_DISABLE_SYLVAN=$disable_sylvan \
-DSTORM_DISABLE_XERCES=$disable_xerces \
-DSTORM_DISABLE_Z3=$disable_z3 \
-DSTORM_DEVELOPER=$developer \
-DSTORM_USE_CLN_EA=$cln_exact \
-DSTORM_USE_CLN_RF=$cln_ratfunc \
-DSTORM_COMPILE_WITH_ALL_SANITIZERS=$all_sanitizers \
$cmake_args ..
# Build Storm
# (This can be adapted to only build 'storm' or 'binaries' depending on custom needs)
RUN make -j $no_threads
WORKDIR /opt/storm