-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
57 lines (46 loc) · 1.69 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
FROM archlinux
MAINTAINER Anzhela Sukhanova <[email protected]>
# preinstall
RUN pacman -Syy \
&& pacman --noconfirm -Suy \
&& pacman --noconfirm -S wget \
git \
python \
python-pip \
make \
gcc \
libffi \
scala \
&& 1 | pacman --noconfirm -S sbt
# download seeds
RUN git clone https://github.com/dvvrd/spacer-benchmarks.git --depth 1 \
&& git clone https://github.com/chc-comp/chc-comp21-benchmarks.git --depth 1 \
&& git clone https://gitlab.com/sosy-lab/benchmarking/sv-benchmarks.git --depth 1
# prepare seeds
RUN mv sv-benchmarks/clauses sv-benchmarks-clauses \
&& rm -rf sv-benchmarks sv-benchmarks-clauses/QALIA sv-benchmarks-clauses/BOOL sv-benchmarks-clauses/ALIA/liquid-haskell \
&& rm -rf chc-comp21-benchmarks/LRA-TS chc-comp21-benchmarks/ADT-Nonlin \
&& gzip -d -r chc-comp21-benchmarks
# copy and install requirements
COPY requirements.txt .
RUN pip install -r requirements.txt
# download and edit Z3-sourses
RUN git clone https://github.com/AnzhelaSukhanova/z3.git \
&& cd z3 \
&& git checkout 4c3185d \
&& python scripts/mk_make.py --python \
&& sed -i -e 's, -D_MP_INTERNAL, -D_TRACE -D_MP_INTERNAL,g' build/config.mk
# install Z3
RUN cd z3/build && make -j$(nproc) && make install
# install Eldarica
RUN git clone https://github.com/AnzhelaSukhanova/eldarica.git --depth 1 \
&& cd eldarica \
&& git checkout b6931b6 \
&& sbt assembly
# add project-files
ADD src src
ADD seed_info seed_info
ADD false_formulas false_formulas
ADD exclude_seed.json .
# run fuzzing
CMD python src/main.py all -heur transitions -opt restore