This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
65 lines (50 loc) · 2.14 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
57
58
59
60
61
62
63
64
65
FROM archlinux:latest
RUN pacman -Syyu --noconfirm --noprogressbar &&\
pacman -S --noconfirm --needed --noprogressbar base-devel
# Adding user
RUN /usr/sbin/groupadd --system sudo && \
/usr/sbin/useradd --create-home \
--groups sudo \
--uid 1337 --user-group \
dead && \
/usr/sbin/sed -i -e "s/Defaults requiretty.*/ #Defaults requiretty/g" /etc/sudoers && \
/usr/sbin/echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER dead
WORKDIR /home/dead
# Installing yay 11.1.1
RUN sudo pacman -S --noconfirm --noprogressbar git
RUN git clone https://aur.archlinux.org/yay.git &&\
cd yay &&\
git checkout cdf06b6781263e24d98754a99d70857aa959f691 &&\
makepkg -si --noconfirm --noprogressbar
RUN rm -r yay/
# Installing dependencies
# These need compilation
RUN yay -S --noconfirm --noprogressbar csmith\
creduce-git\
compcert
# These don't
RUN yay -S --noconfirm --noprogressbar python\
python-pip\
gcc\
clang\
llvm\
compiler-rt\
cmake\
boost\
ninja\
entr
COPY --chown=dead callchain_checker/ ./callchain_checker/
RUN mkdir /home/dead/callchain_checker/build/ &&\
cd /home/dead/callchain_checker/build/ &&\
cmake .. &&\
make -j
COPY requirements.txt .
RUN python3 -m pip install -r requirements.txt
RUN mkdir /home/dead/.config/dead/
RUN python3 -c 'from pathlib import Path; from dead_instrumenter import utils; utils.make_config(Path.home() / ".config/dead/instrumenter.json", True)'
COPY dockerconfig.json /home/dead/.config/dead/config.json
COPY --chown=dead *.py /home/dead/
COPY --chown=dead patches/ /home/dead/patches/
COPY --chown=dead ./run_parallel.sh /home/dead/run_parallel.sh
ENV PATH="/home/dead/.local/bin:${PATH}"