mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Merge pull request #7061 from ClickHouse/better_shared_build
Add image for split build smoke test
This commit is contained in:
commit
cf982d0ad6
@ -12,5 +12,6 @@
|
||||
"docker/test/stateless_with_coverage": "yandex/clickhouse-stateless-test-with-coverage",
|
||||
"docker/test/unit": "yandex/clickhouse-unit-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"
|
||||
}
|
||||
|
6
docker/test/split_build_smoke_test/Dockerfile
Normal file
6
docker/test/split_build_smoke_test/Dockerfile
Normal 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
|
17
docker/test/split_build_smoke_test/run.sh
Executable file
17
docker/test/split_build_smoke_test/run.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -x
|
||||
|
||||
install_and_run_server() {
|
||||
mkdir /unpacked
|
||||
tar -xzf /package_folder/shared_build.tgz -C /unpacked --strip 1
|
||||
LD_LIBRARY_PATH=/unpacked /unpacked/clickhouse-server --config /unpacked/config/config.xml >/var/log/clickhouse-server/stderr.log 2>&1 &
|
||||
sleep 5
|
||||
}
|
||||
|
||||
run_client() {
|
||||
LD_LIBRARY_PATH=/unpacked /unpacked/clickhouse-client --query \"select 'OK'\" 2>/var/log/clickhouse-server/clientstderr.log || echo 'FAIL'
|
||||
}
|
||||
|
||||
install_and_run_server
|
||||
run_client
|
Loading…
Reference in New Issue
Block a user