2018-11-23 15:10:07 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2021-03-23 11:35:45 +00:00
|
|
|
dockerd --host=unix:///var/run/docker.sock --host=tcp://0.0.0.0:2375 --default-address-pool base=10.10.0.0/16,size=24 &>/ClickHouse/tests/integration/dockerd.log &
|
2018-11-23 15:10:07 +00:00
|
|
|
|
2019-05-20 08:11:53 +00:00
|
|
|
set +e
|
|
|
|
reties=0
|
|
|
|
while true; do
|
|
|
|
docker info &>/dev/null && break
|
2020-09-30 17:06:14 +00:00
|
|
|
reties=$((reties+1))
|
2019-05-20 08:11:53 +00:00
|
|
|
if [[ $reties -ge 100 ]]; then # 10 sec max
|
|
|
|
echo "Can't start docker daemon, timeout exceeded." >&2
|
|
|
|
exit 1;
|
|
|
|
fi
|
|
|
|
sleep 0.1
|
|
|
|
done
|
|
|
|
set -e
|
2018-11-23 15:10:07 +00:00
|
|
|
|
|
|
|
echo "Start tests"
|
|
|
|
export CLICKHOUSE_TESTS_SERVER_BIN_PATH=/clickhouse
|
|
|
|
export CLICKHOUSE_TESTS_CLIENT_BIN_PATH=/clickhouse
|
|
|
|
export CLICKHOUSE_TESTS_BASE_CONFIG_DIR=/clickhouse-config
|
2019-01-30 08:24:16 +00:00
|
|
|
export CLICKHOUSE_ODBC_BRIDGE_BINARY_PATH=/clickhouse-odbc-bridge
|
2018-11-23 15:10:07 +00:00
|
|
|
|
2020-08-12 15:04:36 +00:00
|
|
|
export DOCKER_MYSQL_GOLANG_CLIENT_TAG=${DOCKER_MYSQL_GOLANG_CLIENT_TAG:=latest}
|
|
|
|
export DOCKER_MYSQL_JAVA_CLIENT_TAG=${DOCKER_MYSQL_JAVA_CLIENT_TAG:=latest}
|
|
|
|
export DOCKER_MYSQL_JS_CLIENT_TAG=${DOCKER_MYSQL_JS_CLIENT_TAG:=latest}
|
|
|
|
export DOCKER_MYSQL_PHP_CLIENT_TAG=${DOCKER_MYSQL_PHP_CLIENT_TAG:=latest}
|
|
|
|
export DOCKER_POSTGRESQL_JAVA_CLIENT_TAG=${DOCKER_POSTGRESQL_JAVA_CLIENT_TAG:=latest}
|
2020-09-29 08:56:37 +00:00
|
|
|
export DOCKER_KERBEROS_KDC_TAG=${DOCKER_KERBEROS_KDC_TAG:=latest}
|
2020-08-12 15:04:36 +00:00
|
|
|
|
2020-04-01 23:51:21 +00:00
|
|
|
cd /ClickHouse/tests/integration
|
|
|
|
exec "$@"
|