ClickHouse/docker/test/fuzzer/Dockerfile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.2 KiB
Docker
Raw Normal View History

# rebuild in #33610
2021-09-06 11:33:39 +00:00
# docker build -t clickhouse/fuzzer .
ARG FROM_TAG=latest
FROM clickhouse/test-base:$FROM_TAG
2020-07-09 11:21:23 +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/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/* /var/cache/debconf /tmp/*
2020-07-09 11:21:23 +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