Skip to content

Commit db1c2c1

Browse files
committed
Added docker file
1 parent 901316b commit db1c2c1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docker/Dockerfile

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
FROM ubuntu:18.04
2+
3+
RUN apt-get update && apt-get install -y \
4+
python3 g++ gcc make cmake git llvm-7 libllvm7 clang-7 wget unzip python3-pip vim libclang-7-dev libclang-common-7-dev
5+
6+
RUN ln -sf $(which python3) /usr/bin/python; ln -sf $(which pip3) /usr/bin/pip
7+
8+
RUN git clone https://github.com/Z3Prover/z3
9+
RUN cd /z3; git checkout tags/z3-4.8.7; python scripts/mk_make.py --prefix=/ --python --pypkgdir=/usr/lib/python3/dist-packages; cd build; make; make install
10+
11+
# RUN wget https://github.com/Z3Prover/z3/releases/download/z3-4.8.7/z3-4.8.7-x64-ubuntu-16.04.zip
12+
# RUN unzip z3-4.8.7-x64-ubuntu-16.04.zip
13+
# RUN mv z3-4.8.7-x64-ubuntu-16.04 z3
14+
15+
ENV Z3_DIR="/z3"
16+
ENV LD_LIBRARY_PATH="/z3/build"
17+
ENV PYTHON_PATH="/z3/build/python"
18+
19+
ARG CACHEBUST=1
20+
21+
RUN git clone https://github.com/PL-ML/code2inv.git
22+
RUN cd /code2inv; pip install -e .
23+
RUN cd /code2inv/clang-fe; make
24+
WORKDIR code2inv

0 commit comments

Comments
 (0)