ClickHouse/docker/test/sqltest/Dockerfile

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

30 lines
757 B
Docker
Raw Normal View History

2023-07-19 01:42:32 +00:00
# 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 \
&& rm -rf /var/lib/apt/lists/* /var/cache/debconf /tmp/*
2023-07-19 01:42:32 +00:00
2024-07-03 19:58:18 +00:00
COPY requirements.txt /
RUN pip3 install --no-cache-dir -r /requirements.txt
2023-07-19 01:42:32 +00:00
ARG sqltest_repo="https://github.com/elliotchance/sqltest/"
RUN git clone ${sqltest_repo}
ENV TZ=UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
COPY run.sh /
2023-07-19 01:45:43 +00:00
COPY test.py /
2023-07-19 01:42:32 +00:00
CMD ["/bin/bash", "/run.sh"]