ClickHouse/docker/test/stateless_pytest/Dockerfile

32 lines
976 B
Docker
Raw Normal View History

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 \
python3-setuptools \
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 \
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