-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.centos8
65 lines (54 loc) · 1.39 KB
/
Dockerfile.centos8
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 quay.io/centos/centos:stream8 AS deps
# General dependencies
RUN dnf install --assumeyes \
ca-certificates \
libcurl-minimal \
gdb \
git \
gnupg
# Development dependencies
RUN dnf install --assumeyes \
clang \
libcurl-devel \
llvm \
python3-devel \
python3-pip \
python3-setuptools \
cmake \
zlib-devel
# Remaining LLVM tools
RUN dnf install --assumeyes \
lld \
llvm-devel
ENV LLVM_CONFIG=llvm-config-17
RUN pip3 install --user wheel
FROM deps AS aflpp
# AFL++ build dependencies
# Currently gcc plugin version don't match available gcc version. This is necessary for some AFL++ modes.
RUN dnf install --assumeyes \
automake \
cpio \
glib2-devel \
flex \
bison \
cargo
# Clone and build AFL++
RUN set -ex \
&& cd /usr/local/src \
&& git clone --depth 1 -b v4.10c https://github.com/AFLplusplus/AFLplusplus.git \
&& cd AFLplusplus \
&& make all \
&& make install \
&& set +ex
FROM aflpp as vmf
# Clone, build, install VMF
RUN set -ex \
&& cd /usr/local/src \
&& git clone --depth 1 https://github.com/draperlaboratory/vadermodularfuzzer.git vmf\
&& cd vmf \
&& mkdir -p build \
&& cd build \
&& cmake -DCMAKE_INSTALL_PREFIX=/usr/local .. \
&& make -j \
&& make install \
&& set +ex