ClickHouse/docker/test/fuzzer/Dockerfile

41 lines
1.1 KiB
Docker
Raw Normal View History

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
ENV LANG=C.UTF-8
ENV TZ=Europe/Moscow
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN sed -i 's|http://archive|http://ru.archive|g' /etc/apt/sources.list
2020-07-09 11:21:23 +00:00
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/*
RUN pip3 install Jinja2 pandas clickhouse_driver
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