Skip to content

Add a clickhouse-client feature - #17

Merged
benwilson512 merged 1 commit into
mainfrom
benwilson512-clickhouse-client-feature
Dec 1, 2026
Merged

benwilson512 merged 1 commit into
mainfrom
benwilson512-clickhouse-client-feature

Conversation

@benwilson512

@benwilson512 benwilson512 commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

Adds ghcr.io/CargoSense/devcontainer-features/clickhouse-client:1, which installs clickhouse-client from ClickHouse's signed stable apt repository. It follows the google-cloud-cli feature: it adds the keyring and apt source, installs the package, and removes curl and gpg afterwards if it had to install them.

Options: version is latest (the default) or a full package version such as 26.8.51.4. A pinned client also pins clickhouse-common-static to the same version, because clickhouse-client depends on exactly its own version of that package and apt won't resolve a mismatch.

Size: the client ships inside clickhouse-common-static (the single ClickHouse binary), which is about 615 MB installed. ClickHouse doesn't publish a smaller client-only package. The README says so.

Testing

  • test/clickhouse-client/ has the autogenerated test plus two scenarios on debian:trixie: latest, and one pinned to 26.8.51.4 that asserts the version. The feature is in both matrices in test.yml, so this PR's CI runs them.
  • Locally on Debian trixie (arm64): install.sh with VERSION=latest succeeds. A simulated install of the pinned pair resolves, and the client pinned without the common package fails with the unmet clickhouse-common-static (= 26.8.51.4) dependency the script avoids.
  • shellcheck passes with the repo's .shellcheckrc.

Merging publishes the feature through release.yml.

🤖 Generated with Claude Code

@benwilson512
benwilson512 requested a review from a team as a code owner November 30, 2026 22:49
Installs clickhouse-client from ClickHouse's signed stable apt repository,
latest by default or a pinned package version. A pinned client also pins
clickhouse-common-static, which the client depends on at exactly its own
version.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@benwilson512
benwilson512 force-pushed the benwilson512-clickhouse-client-feature branch from 0394b76 to 41ef493 Compare December 1, 2026 17:03
@benwilson512
benwilson512 merged commit c0216b5 into main Dec 1, 2026
62 of 64 checks passed
@benwilson512
benwilson512 deleted the benwilson512-clickhouse-client-feature branch December 1, 2026 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant