mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Add correct S3
This commit is contained in:
parent
ae7bc00dab
commit
dbfa17aabf
@ -26,4 +26,6 @@ COPY ./stress /stress
|
||||
COPY run.sh /
|
||||
|
||||
ENV DATASETS="hits visits"
|
||||
ENV S3_URL="https://clickhouse-datasets.s3.yandex.net"
|
||||
|
||||
CMD ["/bin/bash", "/run.sh"]
|
||||
|
@ -112,7 +112,7 @@ configure
|
||||
start
|
||||
|
||||
# shellcheck disable=SC2086 # No quotes because I want to split it into words.
|
||||
/s3downloader --dataset-names $DATASETS
|
||||
/s3downloader --url-prefix "$S3_URL" --dataset-names $DATASETS
|
||||
chmod 777 -R /var/lib/clickhouse
|
||||
clickhouse-client --query "ATTACH DATABASE IF NOT EXISTS datasets ENGINE = Ordinary"
|
||||
clickhouse-client --query "CREATE DATABASE IF NOT EXISTS test"
|
||||
|
@ -100,7 +100,7 @@ def build_config_to_string(build_config):
|
||||
|
||||
|
||||
def get_run_command(build_path, result_folder, server_log_folder, image):
|
||||
cmd = "docker run " + \
|
||||
cmd = "docker run -e S3_URL='https://clickhouse-datasets.s3.amazonaws.com' " + \
|
||||
f"--volume={build_path}:/package_folder " \
|
||||
f"--volume={result_folder}:/test_output " \
|
||||
f"--volume={server_log_folder}:/var/log/clickhouse-server {image}"
|
||||
|
Loading…
Reference in New Issue
Block a user