-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.redhat9
59 lines (49 loc) · 1.26 KB
/
Dockerfile.redhat9
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
FROM redhat/ubi9 AS deps
RUN dnf install --assumeyes \
ca-certificates \
curl-minimal \
gdb \
git \
gnupg
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
# 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 \
cargo
FROM deps AS aflpp
# 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