mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Better
This commit is contained in:
parent
7e936c248f
commit
083ca0f283
@ -51,10 +51,10 @@ ENV MAX_RUN_TIME=0
|
||||
|
||||
|
||||
# Download Minio-related binaries
|
||||
RUN wget 'https://dl.min.io/server/minio/release/linux-amd64/minio' \
|
||||
&& chmod +x minio \
|
||||
&& wget 'https://dl.min.io/client/mc/release/linux-amd64/mc' \
|
||||
&& chmod +x ./mc
|
||||
RUN wget 'https://dl.min.io/server/minio/release/linux-amd64/minio' -o /minio \
|
||||
&& chmod +x /minio \
|
||||
&& wget 'https://dl.min.io/client/mc/release/linux-amd64/mc' -o /minio \
|
||||
&& chmod +x /mc
|
||||
|
||||
ENV MINIO_ROOT_USER=clickhouse
|
||||
ENV MINIO_ROOT_PASSWORD=clickhouse
|
||||
|
@ -2,18 +2,12 @@
|
||||
|
||||
set -e -x -a
|
||||
|
||||
/minio server --address ":11111" ./data > /dev/null &
|
||||
|
||||
|
||||
|
||||
./minio server --address ":11111" ./data > /dev/null &
|
||||
|
||||
|
||||
|
||||
|
||||
./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
|
||||
/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
|
||||
|
||||
|
||||
# Upload data to Minio. By default after unpacking all tests will in
|
||||
@ -24,5 +18,5 @@ cd /usr/share/clickhouse-test/queries/0_stateless/test_minio
|
||||
FILES=$(ls .)
|
||||
for FILE in $FILES; do
|
||||
echo $FILE;
|
||||
./mc cp $FILE clickminio/test/$FILE;
|
||||
/mc cp $FILE clickminio/test/$FILE;
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user