-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDockerfile
More file actions
48 lines (38 loc) · 1.34 KB
/
Dockerfile
File metadata and controls
48 lines (38 loc) · 1.34 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
# Dockerfile for starter project
#################################
# The Docker image can be built by executing:
# docker build -t yourusername/storm-starter .
# 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:stable
FROM $BASE_IMAGE
LABEL org.opencontainers.image.authors="dev@stormchecker.org"
# 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
# Storm directory
ARG storm_root="/opt/storm"
# Whether to fetch storm or not
ARG never_fetch_storm="ON"
# Build starter project
#######################
RUN mkdir /opt/storm-project-starter-cpp
WORKDIR /opt/storm-project-starter-cpp
# Copy the content of the current local starter repository into the Docker image
COPY . .
# Switch to build directory
RUN mkdir -p /opt/storm-project-starter-cpp/build
WORKDIR /opt/storm-project-starter-cpp/build
# Configure starter project using the (non-installed) version of storm.
RUN cmake -DCMAKE_BUILD_TYPE=$build_type \
-DSTORM_ROOT=$storm_root \
-DNEVER_FETCH_STORM=$never_fetch_storm \
..
# Build binary
RUN make -j $no_threads