2021-09-06 11:33:39 +00:00
|
|
|
# docker build -t clickhouse/fuzzer .
|
|
|
|
FROM clickhouse/test-base
|
2020-07-09 11:21:23 +00:00
|
|
|
|
2021-11-25 16:30:39 +00:00
|
|
|
# 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
|
|
|
|
|
2020-07-09 11:21:23 +00:00
|
|
|
ENV LANG=C.UTF-8
|
|
|
|
ENV TZ=Europe/Moscow
|
|
|
|
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 \
|
2021-08-24 12:27:50 +00:00
|
|
|
python3 \
|
|
|
|
python3-pip \
|
2020-07-09 11:21:23 +00:00
|
|
|
rsync \
|
|
|
|
tree \
|
|
|
|
tzdata \
|
|
|
|
vim \
|
|
|
|
wget \
|
|
|
|
&& apt-get autoremove --yes \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2021-10-12 18:06:26 +00:00
|
|
|
RUN pip3 install Jinja2
|
2021-08-24 12:27:50 +00:00
|
|
|
|
2020-07-09 11:21:23 +00:00
|
|
|
COPY * /
|
|
|
|
|
2020-07-30 13:43:22 +00:00
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
|
|
CMD set -o pipefail \
|
|
|
|
&& cd /workspace \
|
2020-07-09 11:55:54 +00:00
|
|
|
&& /run-fuzzer.sh 2>&1 | ts "$(printf '%%Y-%%m-%%d %%H:%%M:%%S\t')" | tee main.log
|
2020-07-09 11:21:23 +00:00
|
|
|
|
2021-09-06 11:33:39 +00:00
|
|
|
# docker run --network=host --volume <workspace>:/workspace -e PR_TO_TEST=<> -e SHA_TO_TEST=<> clickhouse/fuzzer
|
2020-07-09 11:21:23 +00:00
|
|
|
|