Files
RahulandClaude Sonnet 4.6 8ae7dd10ee ci: add distroless Docker tests to docker_server test infrastructure
Add two Docker Official Library-compatible tests for the distroless
image variants, and register the distroless images in `config.sh` so
they are picked up automatically by `docker_server.py` in CI.

New tests (under `ci/jobs/scripts/docker_server/tests/`):
- `clickhouse-distroless-no-shell`: verifies `/bin/sh` and `/bin/bash`
  are absent from the production distroless image
- `clickhouse-distroless-initdb`: verifies `clickhouse docker-init`
  executes SQL initdb scripts at startup (the compiled entrypoint
  replaces `entrypoint.sh` in the distroless image)

`config.sh` changes:
- Split `clickhouse-*` tests from `clickhouse-distroless-*` tests so
  the distroless-only tests don't run against the standard images
- Map `clickhouse/clickhouse-server:distroless` to both the standard
  tests and the distroless-specific tests
- Map `clickhouse/clickhouse-keeper:distroless` to the keeper tests

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-03-16 08:34:15 -07:00

4 lines
201 B
SQL

CREATE DATABASE IF NOT EXISTS test_db;
CREATE TABLE IF NOT EXISTS test_db.test_table (id UInt32, value UInt32) ENGINE = MergeTree ORDER BY id;
INSERT INTO test_db.test_table VALUES (1, 100), (2, 200);