Skip to content
Snippets Groups Projects
Commit 452c4d5d authored by Michele Alberti's avatar Michele Alberti
Browse files

[docker] Add Marabou and SAVer in docker image.

parent 2d5f0020
No related branches found
No related tags found
No related merge requests found
...@@ -42,3 +42,36 @@ opam install --deps-only --with-test -y . ...@@ -42,3 +42,36 @@ opam install --deps-only --with-test -y .
@ENV@ @ENV@
RUN cd caisar && make && make install RUN cd caisar && make && make install
## External provers
# Download Marabou and install system dependencies
RUN sudo apt-get install -yy cmake gfortran wget && \
git clone --depth 1 https://github.com/NeuralNetworkVerification/Marabou.git
# Build Marabou
RUN cd Marabou && \
mkdir build && \
cd build && \
cmake .. \
-DBUILD_PYTHON=OFF \
-DRUN_UNIT_TEST=OFF \
-DRUN_MEMORY_TEST=OFF \
-DCMAKE_CXX_FLAGS="-Wno-error -Wno-sign-compare" && \
cmake --build .
# Extend PATH with path to the Marabou binary
ENV PATH "/home/opam/Marabou/build:$PATH"
# Download, build and install SAVer
RUN git clone --depth 1 https://github.com/svm-abstract-verifier/saver.git && \
cd saver/src && \
make && \
make install
# Extend PATH with path to the SAVer binary
ENV PATH "/home/opam/saver/bin:$PATH"
# Configuration check
RUN caisar config -d
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment