2022-01-13 18:03:34 +00:00
|
|
|
# rebuild in #33610
|
2021-09-06 11:33:39 +00:00
|
|
|
# docker build -t clickhouse/fuzzer .
|
2021-12-24 15:10:06 +00:00
|
|
|
ARG FROM_TAG=latest
|
|
|
|
FROM clickhouse/test-base:$FROM_TAG
|
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
|
2023-07-30 03:18:52 +00:00
|
|
|
ENV TZ=Europe/Amsterdam
|
2020-07-09 11:21:23 +00:00
|
|
|
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 \
|
2022-11-24 20:36:42 +00:00
|
|
|
&& timeout -s 9 1h /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
|
|
|
|