Move dowloading to dockerfile

This commit is contained in:
Nikita Mikhaylov 2021-08-27 14:22:04 +00:00
parent 92446b1b88
commit 4cdc978636
2 changed files with 11 additions and 4 deletions

View File

@ -49,6 +49,13 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV NUM_TRIES=1
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
ENV MINIO_ROOT_USER=clickhouse
ENV MINIO_ROOT_PASSWORD=clickhouse

View File

@ -2,13 +2,13 @@
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