| ADD file:ff3112828967e8004a3264d7ece3f81c88e6a1d44d360b9b5613caab15b41717 in / |
| CMD ["/bin/sh"] |
| ENV LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_ALL=en_US.UTF-8 TZ=UTC CLICKHOUSE_CONFIG=/etc/clickhouse-server/config.xml |
| COPY /lib/linux-gnu/libc.so.6 /lib/linux-gnu/libdl.so.2 /lib/linux-gnu/libm.so.6 /lib/linux-gnu/libpthread.so.0 /lib/linux-gnu/librt.so.1 /lib/linux-gnu/libnss_dns.so.2 /lib/linux-gnu/libnss_files.so.2 /lib/linux-gnu/libresolv.so.2 /lib/linux-gnu/ld-2.31.so /lib/ # buildkit |
| COPY /etc/nsswitch.conf /etc/ # buildkit |
| COPY docker_related_config.xml /etc/clickhouse-server/config.d/ # buildkit |
| COPY entrypoint.sh /entrypoint.sh # buildkit |
| ARG TARGETARCH |
| RUN |1 TARGETARCH=arm64 /bin/sh -c arch=${TARGETARCH:-amd64} && case $arch in amd64) mkdir -p /lib64 && ln -sf /lib/ld-2.31.so /lib64/ld-linux-x86-64.so.2 ;; arm64) ln -sf /lib/ld-2.31.so /lib/ld-linux-aarch64.so.1 ;; esac # buildkit |
| ARG REPO_CHANNEL=stable |
| ARG REPOSITORY=https://packages.clickhouse.com/tgz/stable |
| ARG VERSION=23.10.5.20 |
| ARG PACKAGES=clickhouse-client clickhouse-server clickhouse-common-static |
| RUN |5 TARGETARCH=arm64 REPO_CHANNEL=stable REPOSITORY=https://s3.amazonaws.com/clickhouse-builds/23.11/a9bb76378fbd7ec800efefbd383f84e75a7e75d2/package_aarch64 VERSION=23.11.1.1968 PACKAGES=clickhouse-client clickhouse-server clickhouse-common-static /bin/sh -c arch=${TARGETARCH:-amd64} && for package in ${PACKAGES}; do ( cd /tmp && echo "Get ${REPOSITORY}/${package}-${VERSION}-${arch}.tgz" && wget -c -q "${REPOSITORY}/${package}-${VERSION}-${arch}.tgz" && wget -c -q "${REPOSITORY}/${package}-${VERSION}-${arch}.tgz.sha512" && sed 's:/output/:/tmp/:' < "${package}-${VERSION}-${arch}.tgz.sha512" | sha512sum -c && tar xvzf "${package}-${VERSION}-${arch}.tgz" --strip-components=1 -C / ) ; done && rm /tmp/*.tgz /install -r && addgroup -S -g 101 clickhouse && adduser -S -h /var/lib/clickhouse -s /bin/bash -G clickhouse -g "ClickHouse server" -u 101 clickhouse && mkdir -p /var/lib/clickhouse /var/log/clickhouse-server /etc/clickhouse-server/config.d /etc/clickhouse-server/users.d /etc/clickhouse-client /docker-entrypoint-initdb.d && chown clickhouse:clickhouse /var/lib/clickhouse && chown root:clickhouse /var/log/clickhouse-server && chmod +x /entrypoint.sh && apk add --no-cache bash tzdata && cp /usr/share/zoneinfo/UTC /etc/localtime && echo "UTC" > /etc/timezone && chmod ugo+Xrw -R /var/lib/clickhouse /var/log/clickhouse-server /etc/clickhouse-server /etc/clickhouse-client # buildkit |
| EXPOSE map[8123/tcp:{} 9000/tcp:{} 9009/tcp:{}] |
| VOLUME [/var/lib/clickhouse /var/log/clickhouse-server] |
| ENTRYPOINT ["/entrypoint.sh"] |
| COPY config/plausible-clickhouse-config.xml /etc/clickhouse-server/config.d/logging.xml # buildkit |
| COPY config/plausible-clickhouse-user-config.xml /etc/clickhouse-server/users.d/logging.xml # buildkit |