ByConity/docker/bare
alexey-milovidov 5c51162b29
Update README.md
2020-08-04 17:26:02 +03:00
..
Dockerfile Added a showcase of minimal Docker image 2020-07-04 01:45:17 +03:00
README.md Update README.md 2020-08-04 17:26:02 +03:00
prepare Added a comment 2020-07-04 01:52:19 +03:00

README.md

The bare minimum ClickHouse Docker image.

It is intented as a showcase to check the amount of implicit dependencies of ClickHouse from the OS in addition to the OS kernel.

Example usage:

./prepare
docker build --tag clickhouse-bare .

Run clickhouse-local:

docker run -it --rm --network host clickhouse-bare /clickhouse local --query "SELECT 1"

Run clickhouse-client in interactive mode:

docker run -it --rm --network host clickhouse-bare /clickhouse client

Run clickhouse-server:

docker run -it --rm --network host clickhouse-bare /clickhouse server

It can be also run in chroot instead of Docker (first edit the prepare script to enable proc):

sudo chroot . /clickhouse server

What does it miss?

  • creation of clickhouse user to run the server;
  • VOLUME for server;
  • CA Certificates;
  • most of the details, see other docker images for comparison;