Files
zeekayandHanzo Dev ee284e8075 finish the rebrand where a person actually reads it
The fork already renamed its internals - the built binary is datastore, the
packages are datastore-server and friends, and the shipped config.xml already
says Datastore - but the surfaces a human reads still said ClickHouse. Issue
templates asked which ClickHouse version was affected, the PR template told
contributors to close upstream's issues, and CI job names, log lines, error
messages and argparse descriptions named a product this repo does not ship.

Only prose moved: display names, log and error messages, comments, docstrings
and form labels. Everything a machine resolves stayed exactly as it was,
because renaming those breaks a build rather than a sentence - binary and path
tokens such as clickhouse-client and /etc/clickhouse-server, python and shell
identifiers, CLICKHOUSE_* environment variables, the /ClickHouse container
mount, docker images in a namespace we do not own, S3 buckets, maven and pypi
coordinates, and every URL pointing at upstream. The attribution in NOTICE and
README is untouched.

Two links were wrong rather than merely stale, so they are corrected here. The
PR template's Closes and Related placeholders sent contributors to upstream's
tracker instead of this one, and an earlier pass had rewritten a source
reference to github.com/Datastore/Datastore, which does not resolve.

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-14 14:07:52 -07:00

45 lines
1.3 KiB
Docker

# docker build -t clickhouse/docs-builder .
FROM node:22-bookworm-slim
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
git \
openssh-client \
python3 \
python3-venv \
rsync \
curl \
ca-certificates \
build-essential && \
rm -rf /var/lib/apt/lists/*
ARG CACHE_INVALIDATOR=0
# Create a specific user and group
RUN groupadd -r clickhouse && \
useradd -r -g clickhouse -m -d /home/clickhouse -s /sbin/nologin -c "Datastore user" clickhouse
RUN npm install -g npm@11 mint@latest
# lychee (link checker) drives the broken-links / anchors / redirects checks.
# Build it from source with cargo rather than downloading a release binary.
RUN curl -sSf 'https://sh.rustup.rs' | sh -s -- -y --profile minimal && \
apt-get update && \
apt-get install -y --no-install-recommends pkg-config libssl-dev && \
. "$HOME/.cargo/env" && \
cargo install lychee && \
cp "$HOME/.cargo/bin/lychee" /usr/local/bin/lychee && \
rustup self uninstall -y && \
rm -rf /var/lib/apt/lists/*
ENV HOME=/opt/clickhouse-docs
# Create directory with specific ownership
RUN mkdir -p /opt/clickhouse-docs && \
chown clickhouse:clickhouse /opt/clickhouse-docs && \
chmod -R a+rw /opt/clickhouse-docs/
# Set working directory
WORKDIR /