2023-09-10 17:07:49 +00:00
|
|
|
ARG FROM_TAG=latest
|
|
|
|
FROM clickhouse/test-base:$FROM_TAG
|
|
|
|
|
|
|
|
# ARG for quick switch to a given ubuntu mirror
|
|
|
|
ARG apt_archive="http://archive.ubuntu.com"
|
|
|
|
RUN sed -i "s|http://archive.ubuntu.com|$apt_archive|g" /etc/apt/sources.list
|
|
|
|
|
|
|
|
ENV LANG=C.UTF-8
|
|
|
|
ENV TZ=Europe/Amsterdam
|
|
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
|
|
|
|
RUN apt-get update \
|
|
|
|
&& DEBIAN_FRONTEND=noninteractive apt-get install --yes --no-install-recommends \
|
|
|
|
ca-certificates \
|
|
|
|
libc6-dbg \
|
|
|
|
moreutils \
|
|
|
|
ncdu \
|
|
|
|
p7zip-full \
|
|
|
|
parallel \
|
|
|
|
psmisc \
|
|
|
|
python3 \
|
|
|
|
python3-pip \
|
|
|
|
rsync \
|
|
|
|
tree \
|
|
|
|
tzdata \
|
|
|
|
vim \
|
|
|
|
wget \
|
|
|
|
&& apt-get autoremove --yes \
|
|
|
|
&& apt-get clean \
|
2024-01-29 13:00:22 +00:00
|
|
|
&& rm -rf /var/lib/apt/lists/* /var/cache/debconf /tmp/*
|
2023-09-10 17:07:49 +00:00
|
|
|
|
|
|
|
RUN pip3 install Jinja2
|
|
|
|
|
|
|
|
COPY * /
|
|
|
|
|
2023-09-12 20:56:42 +00:00
|
|
|
ENV FUZZER_ARGS="-max_total_time=60"
|
|
|
|
|
2023-09-10 17:07:49 +00:00
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
CMD set -o pipefail \
|
2023-09-14 03:10:55 +00:00
|
|
|
&& timeout -s 9 1h /run_libfuzzer.py 2>&1 | ts "$(printf '%%Y-%%m-%%d %%H:%%M:%%S\t')" | tee main.log
|
2023-09-10 17:07:49 +00:00
|
|
|
|
|
|
|
# docker run --network=host --volume <workspace>:/workspace -e PR_TO_TEST=<> -e SHA_TO_TEST=<> clickhouse/libfuzzer
|
|
|
|
|