-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
172 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# | ||
# Dockerfile for building Crab dependencies for Ubuntu 22.04 jammy | ||
# | ||
|
||
# Pull base image. | ||
FROM buildpack-deps:jammy | ||
|
||
RUN apt-get update && \ | ||
apt-get install -yqq software-properties-common && \ | ||
apt-get install -yqq build-essential && \ | ||
add-apt-repository -y ppa:mhier/libboost-latest && \ | ||
apt-get update && \ | ||
apt-get install -yqq cmake cmake-data \ | ||
ninja-build \ | ||
g++-12 \ | ||
libboost1.74-dev libboost-program-options1.74-dev \ | ||
libgmp-dev libmpfr-dev libflint-dev | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Dockerfile for Crab image without external libraries. | ||
# | ||
# Pull base image. | ||
FROM seahorn/buildpack-deps-crab:jammy | ||
|
||
# Assume that docker-build is ran in the top-level Crab directory | ||
COPY . /crab | ||
# Re-create the build directory that might have been present in the source tree | ||
RUN rm -rf /crab/build /crab/debug /crab/release && mkdir /crab/build | ||
|
||
WORKDIR /crab/build | ||
|
||
ARG BUILD_TYPE | ||
# Build configuration. | ||
RUN cmake -GNinja \ | ||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | ||
-DCMAKE_INSTALL_PREFIX=run \ | ||
-DCMAKE_CXX_COMPILER=g++-12 \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ | ||
-DCRAB_ENABLE_TESTS=ON \ | ||
../ && \ | ||
cmake --build . --target install | ||
|
||
# Run tests | ||
RUN /crab/tests/run_tests.sh /crab/tests/expected_results.out /crab/build | ||
|
||
WORKDIR /crab | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# | ||
# Dockerfile for Crab image with apron and boxes libraries. | ||
# | ||
|
||
# Pull base image. | ||
FROM seahorn/buildpack-deps-crab:jammy | ||
|
||
# Assume that docker-build is ran in the top-level Crab directory | ||
COPY . /crab | ||
# Re-create the build directory that might have been present in the source tree | ||
RUN rm -rf /crab/build /crab/debug /crab/release && mkdir /crab/build | ||
WORKDIR /crab/build | ||
|
||
ARG BUILD_TYPE | ||
# Build configuration. | ||
RUN cmake -GNinja \ | ||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | ||
-DCMAKE_INSTALL_PREFIX=run \ | ||
-DCMAKE_CXX_COMPILER=g++-12 \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ | ||
-DCRAB_USE_LDD=ON \ | ||
-DCRAB_USE_APRON=ON \ | ||
-DCRAB_ENABLE_TESTS=ON \ | ||
../ && \ | ||
cmake --build . --target ldd && cmake .. && \ | ||
cmake --build . --target apron && cmake .. && \ | ||
cmake --build . --target install | ||
|
||
# Run tests | ||
RUN /crab/tests/run_tests.sh /crab/tests/expected_results.apron.out /crab/build | ||
RUN /crab/tests/run_tests.sh /crab/tests/expected_results.boxes.out /crab/build | ||
|
||
WORKDIR /crab | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# | ||
# Dockerfile for Crab image with elina library. | ||
# | ||
|
||
# Pull base image. | ||
FROM seahorn/buildpack-deps-crab:jammy | ||
|
||
# Assume that docker-build is ran in the top-level Crab directory | ||
COPY . /crab | ||
# Re-create the build directory that might have been present in the source tree | ||
RUN rm -rf /crab/build /crab/debug /crab/release && mkdir /crab/build | ||
WORKDIR /crab/build | ||
|
||
ARG BUILD_TYPE | ||
# Build configuration. | ||
RUN cmake -GNinja \ | ||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | ||
-DCMAKE_INSTALL_PREFIX=run \ | ||
-DCMAKE_CXX_COMPILER=g++-12 \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ | ||
-DCRAB_USE_ELINA=ON \ | ||
-DCRAB_ENABLE_TESTS=ON \ | ||
../ && \ | ||
cmake --build . --target elina && cmake .. && \ | ||
cmake --build . --target install | ||
|
||
# To find elina dynamic libraries | ||
ENV LD_LIBRARY_PATH "/crab/build/run/elina/lib:$LD_LIBRARY_PATH" | ||
|
||
# Run tests | ||
RUN /crab/tests/run_tests.sh /crab/tests/expected_results.elina.out /crab/build | ||
|
||
WORKDIR /crab | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# | ||
# Dockerfile for Crab image with pplite library. | ||
# | ||
|
||
# Pull base image. | ||
FROM seahorn/buildpack-deps-crab:jammy | ||
|
||
# Assume that docker-build is ran in the top-level Crab directory | ||
COPY . /crab | ||
# Re-create the build directory that might have been present in the source tree | ||
RUN rm -rf /crab/build /crab/debug /crab/release && mkdir /crab/build | ||
WORKDIR /crab/build | ||
|
||
ARG BUILD_TYPE | ||
# Build configuration. | ||
RUN cmake -GNinja \ | ||
-DCMAKE_BUILD_TYPE=$BUILD_TYPE \ | ||
-DCMAKE_INSTALL_PREFIX=run \ | ||
-DCMAKE_CXX_COMPILER=g++-12 \ | ||
-DCMAKE_EXPORT_COMPILE_COMMANDS=1 \ | ||
-DCRAB_USE_APRON=ON -DCRAB_USE_PPLITE=ON \ | ||
-DCRAB_ENABLE_TESTS=ON \ | ||
../ && \ | ||
cmake --build . --target apron && cmake .. && \ | ||
cmake --build . --target pplite && cmake .. && \ | ||
cmake --build . --target pplite_domains | ||
|
||
# Run tests | ||
RUN /crab/tests/run_tests.sh /crab/tests/expected_results.pplite.out /crab/build | ||
|
||
WORKDIR /crab | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters