Skip to content

Add a clickhouse-client feature - #18

Closed
benwilson512 wants to merge 1 commit into
mainfrom
benwilson512-clickhouse-client
Closed

benwilson512 wants to merge 1 commit into
mainfrom
benwilson512-clickhouse-client

Conversation

@benwilson512

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

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 <noreply@anthropic.com>
@benwilson512
benwilson512 requested a review from a team as a code owner December 1, 2026 17:03
@benwilson512
benwilson512 deleted the benwilson512-clickhouse-client branch December 1, 2026 17:04
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