ClickHouse/docker/test/stateless_pytest/Dockerfile

35 lines
1.0 KiB
Docker
Raw Normal View History

2022-01-13 16:44:11 +00:00
# rebuild in #33609
2021-09-06 11:33:39 +00:00
# docker build -t clickhouse/stateless-pytest .
ARG FROM_TAG=latest
FROM clickhouse/test-base:$FROM_TAG
2020-04-24 12:53:53 +00:00
2020-04-24 18:40:43 +00:00
RUN apt-get update -y && \
apt-get install -y --no-install-recommends \
2020-10-02 16:54:07 +00:00
python3-pip \
python3-setuptools \
python3-wheel \
brotli \
netcat-openbsd \
2021-06-08 12:01:16 +00:00
postgresql-client \
zstd
2020-04-24 18:40:43 +00:00
2020-10-02 16:54:07 +00:00
RUN python3 -m pip install \
wheel \
2020-04-24 12:53:53 +00:00
pytest \
pytest-html \
pytest-json \
pytest-randomly \
pytest-rerunfailures \
2020-04-24 12:53:53 +00:00
pytest-timeout \
pytest-xdist \
pandas \
numpy \
scipy
2020-04-24 12:53:53 +00:00
CMD dpkg -i package_folder/clickhouse-common-static_*.deb; \
dpkg -i package_folder/clickhouse-common-static-dbg_*.deb; \
dpkg -i package_folder/clickhouse-server_*.deb; \
dpkg -i package_folder/clickhouse-client_*.deb; \
dpkg -i package_folder/clickhouse-test_*.deb; \
python3 -m pytest /usr/share/clickhouse-test/queries -n $(nproc) --reruns=1 --timeout=600 --json=test_output/report.json --html=test_output/report.html --self-contained-html