mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-26 09:32:01 +00:00
Optimize and fix zookeeper downloading and installation
This commit is contained in:
parent
c8ed885bae
commit
5257ff627b
@ -57,14 +57,17 @@ RUN arch=${TARGETARCH:-amd64} \
|
|||||||
# ZooKeeper is not started by default, but consumes some space in containers.
|
# ZooKeeper is not started by default, but consumes some space in containers.
|
||||||
# 777 perms used to allow anybody to start/stop ZooKeeper
|
# 777 perms used to allow anybody to start/stop ZooKeeper
|
||||||
ENV ZOOKEEPER_VERSION='3.6.3'
|
ENV ZOOKEEPER_VERSION='3.6.3'
|
||||||
RUN curl -O "https://dlcdn.apache.org/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/apache-zookeeper-${ZOOKEEPER_VERSION}-bin.tar.gz"
|
RUN curl "https://archive.apache.org/dist/zookeeper/zookeeper-${ZOOKEEPER_VERSION}/apache-zookeeper-${ZOOKEEPER_VERSION}-bin.tar.gz" | \
|
||||||
RUN tar -zxvf apache-zookeeper-${ZOOKEEPER_VERSION}-bin.tar.gz && mv apache-zookeeper-${ZOOKEEPER_VERSION}-bin /opt/zookeeper && chmod -R 777 /opt/zookeeper && rm apache-zookeeper-${ZOOKEEPER_VERSION}-bin.tar.gz
|
tar -C opt -zxv && \
|
||||||
RUN echo $'tickTime=2500 \n\
|
mv /opt/apache-zookeeper-${ZOOKEEPER_VERSION}-bin /opt/zookeeper && \
|
||||||
|
chmod -R 777 /opt/zookeeper && \
|
||||||
|
echo $'tickTime=2500 \n\
|
||||||
tickTime=2500 \n\
|
tickTime=2500 \n\
|
||||||
dataDir=/zookeeper \n\
|
dataDir=/zookeeper \n\
|
||||||
clientPort=2181 \n\
|
clientPort=2181 \n\
|
||||||
maxClientCnxns=80' > /opt/zookeeper/conf/zoo.cfg
|
maxClientCnxns=80' > /opt/zookeeper/conf/zoo.cfg && \
|
||||||
RUN mkdir /zookeeper && chmod -R 777 /zookeeper
|
mkdir /zookeeper && \
|
||||||
|
chmod -R 777 /zookeeper
|
||||||
|
|
||||||
ENV TZ=Etc/UTC
|
ENV TZ=Etc/UTC
|
||||||
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||||
|
Loading…
Reference in New Issue
Block a user