-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerbase.tmp
More file actions
26 lines (21 loc) · 1.01 KB
/
Dockerbase.tmp
File metadata and controls
26 lines (21 loc) · 1.01 KB
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
FROM centos:7
COPY eos.repo /etc/yum.repos.d/
RUN rpm --rebuilddb && yum -y install make cmake3 gcc gcc-c++ git wget \
fuse fuse-libs fuse-devel \
libasan \
ncurses-static \
openssl-devel openssl-static \
python-devel \
readline-devel readline-static \
zlib zlib-devel zlib-static && \
echo "* soft nofile 200000" >> /etc/security/limits.conf && \
echo "* hard nofile 200000" >> /etc/security/limits.conf
RUN wget http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz && tar -xzvf /afl-latest.tgz && mkdir /afl && mv afl-*/* /afl && cd /afl && make install
RUN cd / && git clone https://github.com/xrootd/xrootd.git && mkdir /xrootd/build && \
AFL_COMPILE export CC=/usr/local/bin/afl-gcc && export CXX=/usr/local/bin/afl-g++ && \
#export AFL_USE_ASAN=1 && \
#export VERBOSE=1 && \
#export LDFLAGS="-pthread" && \
cd /xrootd/build && cmake3 .. && \
make -j 4 && make install
COPY fuzz/ /fuzz