Add image for split build smoke test

This commit is contained in:
alesapin 2019-09-23 16:19:55 +03:00
parent 6b6714761b
commit 87ed508aa4
3 changed files with 23 additions and 0 deletions

View File

@ -12,5 +12,6 @@
"docker/test/stateless_with_coverage": "yandex/clickhouse-stateless-test-with-coverage", "docker/test/stateless_with_coverage": "yandex/clickhouse-stateless-test-with-coverage",
"docker/test/unit": "yandex/clickhouse-unit-test", "docker/test/unit": "yandex/clickhouse-unit-test",
"docker/test/stress": "yandex/clickhouse-stress-test", "docker/test/stress": "yandex/clickhouse-stress-test",
"docker/test/split_build_smoke_test": "yandex/clickhouse-split-build-smoke-test",
"dbms/tests/integration/image": "yandex/clickhouse-integration-tests-runner" "dbms/tests/integration/image": "yandex/clickhouse-integration-tests-runner"
} }

View File

@ -0,0 +1,6 @@
# docker build -t yandex/clickhouse-split-build-smoke-test .
FROM yandex/clickhouse-binary-builder
COPY run.sh /run.sh
CMD /run.sh

View File

@ -0,0 +1,16 @@
#!/bin/bash
set -x
install_and_run_server() {
tar -xzf package_folder/shared_build.tgz -C package_folder --strip 1
LD_LIBRARY_PATH=/package_folder /package_folder/clickhouse-server --config /package_folder/config/config.xml >/var/log/clickhouse-server/stderr.log 2>&1 &
sleep 5
}
run_client() {
LD_LIBRARY_PATH=/package_folder /package_folder/clickhouse-client --query \"select 'OK'\" 2>/var/log/clickhouse-server/clientstderr.log || echo 'FAIL'
}
install_and_run_server
run_client