-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile.u22
65 lines (57 loc) · 1.68 KB
/
Dockerfile.u22
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 ubuntu:22.04 AS deps
RUN apt-get update \
&& DEBIAN_FRONTEND="noninteractive" apt-get install -y --no-install-recommends --fix-missing \
ca-certificates \
curl \
gdb \
git \
gnupg \
lsb-core \
lsb-release \
zip
RUN lsb_release -a | grep -q "18.04" && ( \
echo "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-12 main" >> /etc/apt/sources.list && \
curl -L https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - \
) || \
(lsb_release -a | grep -q "20.04") || \
(lsb_release -a | grep -q "22.04") || (echo "Ubuntu 18.04, 20.04, or 22.04 required!!!" >&2; exit 1)
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends --fix-missing \
graphviz \
clang-15 \
clang \
doxygen \
libcurl4-openssl-dev \
llvm-15 \
llvm-15-dev \
lld-15 \
llvm \
lld \
python3-dev \
python3-pip \
python3-setuptools \
build-essential \
cmake
ENV LLVM_CONFIG=llvm-config-15
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 \
&& mkdir vmf \
&& 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