Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Gavazzi1 authored Mar 3, 2021
1 parent 8fa0b4d commit 93a49b8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions community/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# 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
Expand All @@ -13,6 +14,7 @@ RUN useradd -c 'User' -G sudo -s /bin/bash -m -g users user
RUN perl -i -pe 's/(%sudo.*) ALL/\1 NOPASSWD: ALL/' /etc/sudoers

# Install packages required to build boolector and sys
RUN apt-get update
RUN apt-get install -y llvm-9 haskell-stack git cmake curl

USER user
Expand All @@ -22,6 +24,7 @@ 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
RUN git clone https://github.com/llvm-hs/llvm-hs

WORKDIR btor2tools
RUN ./configure.sh && (cd build; make)
Expand All @@ -31,5 +34,18 @@ RUN sudo cp build/lib/libbtor2parser.so /usr/lib/ && \
WORKDIR ../boolector
RUN ./contrib/setup-lingeling.sh && ./configure.sh --shared --prefix /usr
RUN cd build && make && sudo make install

WORKDIR ../sys
RUN stack build

RUN sudo apt-get update
RUN sudo apt-get install -y clang-9
RUN sudo apt-get install -y libsfml-dev
RUN sudo ln /usr/bin/clang-9 /usr/bin/clang
RUN sudo ln /usr/bin/clang++-9 /usr/bin/clang++
RUN sudo ln /usr/bin/llvm-link-9 /usr/bin/llvm-link

RUN sudo apt-get install -y pip vim file
RUN sudo pip install wllvm
ENV PATH=$PATH:/home/user/.local/bin
ENV LLVM_COMPILER=clang

0 comments on commit 93a49b8

Please sign in to comment.