2020-04-24 12:53:53 +00:00
|
|
|
# docker build -t yandex/clickhouse-stateless-pytest .
|
2020-08-27 10:17:17 +00:00
|
|
|
FROM yandex/clickhouse-test-base
|
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 \
|
2020-12-18 13:26:11 +00:00
|
|
|
python3-setuptools \
|
2021-02-10 18:09:13 +00:00
|
|
|
python3-wheel \
|
|
|
|
brotli \
|
|
|
|
netcat-openbsd \
|
|
|
|
zstd
|
2020-04-24 18:40:43 +00:00
|
|
|
|
2020-10-02 16:54:07 +00:00
|
|
|
RUN python3 -m pip install \
|
2020-12-18 13:26:11 +00:00
|
|
|
wheel \
|
2020-04-24 12:53:53 +00:00
|
|
|
pytest \
|
|
|
|
pytest-html \
|
2020-12-18 13:26:11 +00:00
|
|
|
pytest-json \
|
|
|
|
pytest-randomly \
|
|
|
|
pytest-rerunfailures \
|
2020-04-24 12:53:53 +00:00
|
|
|
pytest-timeout \
|
2021-02-10 18:09:13 +00:00
|
|
|
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; \
|
2020-12-18 13:26:11 +00:00
|
|
|
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
|