-
Notifications
You must be signed in to change notification settings - Fork 41
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
3 changed files
with
49 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Debian 10 requires LLVM 9 to be installed from source (no package, no backport), | ||
# hence we use Debian 11 (testing) for now (to be released in 2021). | ||
FROM debian:bullseye | ||
MAINTAINER Ralf-Philipp Weinmann <[email protected]> | ||
|
||
RUN apt-get update && apt-get upgrade -y && \ | ||
apt-get install -y apt-utils build-essential sudo screen tmux | ||
|
||
# Add user | ||
RUN useradd -c 'User' -G sudo -s /bin/bash -m -g users user | ||
|
||
# Don't require password for sudo | ||
RUN perl -i -pe 's/(%sudo.*) ALL/\1 NOPASSWD: ALL/' /etc/sudoers | ||
|
||
# Install packages required to build boolector and sys | ||
RUN apt-get install -y llvm-9 haskell-stack git cmake curl | ||
|
||
USER user | ||
WORKDIR /home/user | ||
RUN mkdir src | ||
WORKDIR src | ||
RUN git clone https://github.com/Boolector/btor2tools.git | ||
RUN git clone https://github.com/Boolector/boolector.git | ||
RUN git clone https://github.com/PLSysSec/sys.git | ||
|
||
WORKDIR btor2tools | ||
RUN ./configure.sh && (cd build; make) | ||
RUN sudo cp build/lib/libbtor2parser.so /usr/lib/ && \ | ||
sudo mkdir /usr/include/btor2parser && \ | ||
sudo cp src/btor2parser/btor2parser.h /usr/include/btor2parser/ | ||
WORKDIR ../boolector | ||
RUN ./contrib/setup-lingeling.sh && ./configure.sh --shared --prefix /usr | ||
RUN cd build && make && sudo make install | ||
WORKDIR ../sys | ||
RUN stack build |
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 @@ | ||
This directory hosts files and tools maintained by the community. |