Documentation for clickhouse and install binaries for Linux distros
Overview
This is a follow up over the introduction of Clickhouse via !2535 (merged)
In the original MR, we've added Clickhouse using Homebrew tap from Altinity. That Tap provides a lot of functionality that allows people to run it, including as a homebrew managed service.
We are not using 99% of what that tap provides, but just relying on the availability of the binary.
As previously discussed here: !2535 (comment 941559370) to add support for the variety of Linux distros, it seems that while in some cases there are official repositories, we would be better off supporting Clickhouse through the single binary approach, as we ultimatelly want to ignore any package and service execution automation.
Proposal
We should download prebuild binaries and install them similar to how we handle ElasticSearch dependency, for Linux.
They provide a script for the latest pre-build binary from master
: https://clickhouse.com/docs/en/getting-started/install#from-single-binary
But that is against the goal of having a fixed version we can all use (for obvious reasons, it's better that everyone uses the same thing, so if bugs are found we can all reproduce)
That brings us to Tgz archives: https://clickhouse.com/docs/en/getting-started/install#from-tgz-archives
By looking at https://packages.clickhouse.com/tgz/stable/ and the clickhouse-common-static
packages, we can download specific versions and extract the binary from it (in its current form it would setup a bunch of folder structures to mimic a linux installation, but we only need one file from there).