-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
52 lines (40 loc) · 1.31 KB
/
Dockerfile
File metadata and controls
52 lines (40 loc) · 1.31 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
# Dockerfile for Carl-parser library
####################################
# The Docker image can be built by executing:
# docker build -t yourusername/carl-parser .
# 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/carl-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>
# CMake build type
ARG build_type=Release
# Specify number of threads to use for parallel compilation
ARG no_threads=2
# Specify additional CMake arguments
ARG cmake_args=""
# Install dependencies
######################
RUN apt-get update -qq
RUN apt-get install -y --no-install-recommends \
default-jre
# Build Carl-parser
###################
RUN mkdir /opt/carl-parser
WORKDIR /opt/carl-parser
# Copy the content of the current local Carl-parser repository into the Docker image
COPY . .
# Switch to build directory
RUN mkdir -p /opt/carl-parser/build
WORKDIR /opt/carl-parser/build
# Configure Carl-parser
RUN cmake -DCMAKE_BUILD_TYPE=$build_type \
-DCARLPARSER_PORTABLE=ON \
$cmake_args ..
# Build Carl-parser library
RUN make carl-parser -j $no_threads