mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 08:32:02 +00:00
Added minio
This commit is contained in:
parent
e41d1cff1d
commit
26efa7184d
@ -49,6 +49,10 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
ENV NUM_TRIES=1
|
||||
ENV MAX_RUN_TIME=0
|
||||
|
||||
ENV MINIO_ROOT_USER=clickhouse
|
||||
ENV MINIO_ROOT_PASSWORD=clickhouse
|
||||
|
||||
COPY run.sh /
|
||||
COPY process_functional_tests_result.py /
|
||||
COPY setup_minio.sh /
|
||||
CMD ["/bin/bash", "/run.sh"]
|
||||
|
19
docker/test/stateless/setup_minio.sh
Normal file
19
docker/test/stateless/setup_minio.sh
Normal file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e -x -a
|
||||
|
||||
wget 'https://dl.min.io/server/minio/release/linux-amd64/minio'
|
||||
chmod +x minio
|
||||
|
||||
./minio server --address ":11111" ./data > /dev/null &
|
||||
|
||||
wget 'https://dl.min.io/client/mc/release/linux-amd64/mc'
|
||||
chmod +x mc
|
||||
|
||||
mc alias set clickminio http://localhost:11111 clickhouse clickhouse
|
||||
mc admin user add clickminio test testtest
|
||||
mc admin policy set clickminio readwrite user=test
|
||||
mc mb clickminio/test
|
||||
|
||||
echo -e "a b c\na b c\na b c\n" > a.txt
|
||||
mc cp a.txt clickminio/test
|
@ -1,11 +1,13 @@
|
||||
DROP TABLE IF EXISTS table_with_range;
|
||||
-- DROP TABLE IF EXISTS table_with_range;
|
||||
|
||||
CREATE TABLE table_with_range
|
||||
(
|
||||
`name` String,
|
||||
`value` UInt32
|
||||
)
|
||||
ENGINE = S3('https://storage.yandexcloud.net/my-test-bucket-768/{some,another}_prefix/some_file_{1..3}', 'CSV')
|
||||
SETTINGS input_format_with_names_use_header = 0;
|
||||
-- CREATE TABLE table_with_range
|
||||
-- (
|
||||
-- `name` String,
|
||||
-- `value` UInt32
|
||||
-- )
|
||||
-- ENGINE = S3('https://storage.yandexcloud.net/my-test-bucket-768/{some,another}_prefix/some_file_{1..3}', 'CSV')
|
||||
-- SETTINGS input_format_with_names_use_header = 0;
|
||||
|
||||
DROP TABLE IF EXISTS table_with_range;
|
||||
select * from s3('http://localhost:11111/test/a.txt', 'test', 'testtest', 'LineAsString', 'line String');
|
||||
|
||||
-- DROP TABLE IF EXISTS table_with_range;
|
||||
|
Loading…
Reference in New Issue
Block a user