File tree Expand file tree Collapse file tree
docker-entrypoint-initdb.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM ubuntu:20.04
2+
3+ ARG CLICKHOUSE_VERSION=20.9.4.76
4+ ARG CLICKHOUSE_GOSU_VERSION=1.10
5+
6+ RUN apt-get update \
7+ && apt-get install --yes --no-install-recommends \
8+ apt-transport-https \
9+ dirmngr \
10+ gnupg \
11+ && mkdir -p /etc/apt/sources.list.d \
12+ && apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 \
13+ && echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" > /etc/apt/sources.list.d/clickhouse.list \
14+ && apt-get update \
15+ && env DEBIAN_FRONTEND=noninteractive \
16+ apt-get install --allow-unauthenticated --yes --no-install-recommends \
17+ clickhouse-common-static=$CLICKHOUSE_VERSION \
18+ clickhouse-client=$CLICKHOUSE_VERSION \
19+ clickhouse-server=$CLICKHOUSE_VERSION \
20+ locales \
21+ tzdata \
22+ wget \
23+ && rm -rf \
24+ /var/lib/apt/lists/* \
25+ /var/cache/debconf \
26+ /tmp/* \
27+ && apt-get clean
28+
29+ ADD https://github.com/tianon/gosu/releases/download/$CLICKHOUSE_GOSU_VERSION/gosu-amd64 /bin/gosu
30+
31+ RUN locale-gen en_US.UTF-8
32+ ENV LANG en_US.UTF-8
33+ ENV LANGUAGE en_US:en
34+ ENV LC_ALL en_US.UTF-8
35+
36+ RUN mkdir /docker-entrypoint-initdb.d
37+
38+ COPY docker_related_config.xml /etc/clickhouse-server/config.d/
39+ COPY config.xml /etc/clickhouse-server/config.xml
40+ COPY entrypoint.sh /entrypoint.sh
41+
42+ RUN chmod +x \
43+ /entrypoint.sh \
44+ /bin/gosu
45+
46+ EXPOSE 9000 8123 9009
47+ VOLUME /var/lib/clickhouse
48+
49+ ENV CLICKHOUSE_CONFIG /etc/clickhouse-server/config.xml
50+ ENV CLICKHOUSE_USER ${CLICKHOUSE_USER}
51+ ENV CLICKHOUSE_PASSWORD ${CLICKHOUSE_PASSWORD}
52+
53+ ENTRYPOINT ["/entrypoint.sh" ]
You can’t perform that action at this time.
0 commit comments