ClickHouse/docker/test/stateless_pytest/Dockerfile

21 lines
709 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 \
python-pip \
python-setuptools
2020-04-24 12:53:53 +00:00
RUN pip install \
pytest \
pytest-html \
pytest-timeout \
pytest-xdist
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; \
python -m pytest /usr/share/clickhouse-test/queries -n $(nproc) --html=test_output/report.html --self-contained-html