mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 13:13:36 +00:00
31 lines
692 B
Docker
31 lines
692 B
Docker
# docker build -t clickhouse/sqltest .
|
|
ARG FROM_TAG=latest
|
|
FROM clickhouse/test-base:$FROM_TAG
|
|
|
|
RUN apt-get update --yes \
|
|
&& env DEBIAN_FRONTEND=noninteractive \
|
|
apt-get install --yes --no-install-recommends \
|
|
wget \
|
|
git \
|
|
python3 \
|
|
python3-dev \
|
|
python3-pip \
|
|
sudo \
|
|
&& apt-get clean
|
|
|
|
RUN pip3 install \
|
|
pyyaml \
|
|
clickhouse-driver
|
|
|
|
ARG sqltest_repo="https://github.com/elliotchance/sqltest/"
|
|
|
|
RUN git clone ${sqltest_repo}
|
|
|
|
ENV TZ=UTC
|
|
ENV MAX_RUN_TIME=900
|
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
|
|
|
COPY run.sh /
|
|
COPY test.py /
|
|
CMD ["/bin/bash", "/run.sh"]
|