2022-01-13 18:03:34 +00:00
|
|
|
# rebuild in #33610
|
2021-09-06 11:33:39 +00:00
|
|
|
# docker build -t clickhouse/stateful-test .
|
2021-12-24 15:10:06 +00:00
|
|
|
ARG FROM_TAG=latest
|
|
|
|
FROM clickhouse/stateless-test:$FROM_TAG
|
2019-01-21 08:46:28 +00:00
|
|
|
|
|
|
|
RUN apt-get update -y \
|
|
|
|
&& env DEBIAN_FRONTEND=noninteractive \
|
|
|
|
apt-get install --yes --no-install-recommends \
|
2020-10-02 16:54:07 +00:00
|
|
|
python3-requests \
|
2020-03-25 12:12:03 +00:00
|
|
|
llvm-9
|
2019-01-21 08:46:28 +00:00
|
|
|
|
|
|
|
COPY s3downloader /s3downloader
|
|
|
|
|
2022-03-28 13:53:22 +00:00
|
|
|
ENV S3_URL="https://clickhouse-datasets.s3.amazonaws.com"
|
2019-01-21 08:46:28 +00:00
|
|
|
ENV DATASETS="hits visits"
|
2022-02-16 15:22:44 +00:00
|
|
|
ENV EXPORT_S3_STORAGE_POLICIES=1
|
2019-01-21 08:46:28 +00:00
|
|
|
|
2022-02-16 13:18:55 +00:00
|
|
|
# Download Minio-related binaries
|
|
|
|
RUN arch=${TARGETARCH:-amd64} \
|
|
|
|
&& wget "https://dl.min.io/server/minio/release/linux-${arch}/minio" \
|
|
|
|
&& chmod +x ./minio \
|
|
|
|
&& wget "https://dl.min.io/client/mc/release/linux-${arch}/mc" \
|
|
|
|
&& chmod +x ./mc
|
|
|
|
ENV MINIO_ROOT_USER="clickhouse"
|
|
|
|
ENV MINIO_ROOT_PASSWORD="clickhouse"
|
|
|
|
COPY setup_minio.sh /
|
|
|
|
|
2020-07-08 08:41:39 +00:00
|
|
|
COPY run.sh /
|
|
|
|
CMD ["/bin/bash", "/run.sh"]
|