Docker: better clickhouse-server entrypoint#18954
Docker: better clickhouse-server entrypoint#18954alexey-milovidov merged 2 commits intoClickHouse:masterfrom
Conversation
| fi | ||
| # will try to send ping clickhouse via http_port (max 12 retries by default, with 1 sec timeout and 1 sec delay between retries) | ||
| tries=${CLICKHOUSE_INIT_TIMEOUT:-12} | ||
| while ! wget --spider -T 1 -q "http://127.0.0.1:$HTTP_PORT/ping" 2>/dev/null; do |
There was a problem hiding this comment.
Probably don't need --spider option anymore now?
There was a problem hiding this comment.
Well --spider just means 'it will not download the pages, just check that they are there'. We still don't need to store 'ok' responce in some file, so i think we can leave it. Alternative is to redirect output to stderr/stdout/ or /dev/null.
@filimonov Are there any reasons to not use it as default and the only option? |
|
Compatibility issues.
For example imagine they install some odbc drivers using
That is not critical but maybe a bad surprise #18927 (comment) BTW - maybe we should create clickhouse user in the Dockerfile with fixed uid/gid ahead / before deb installallation will to it and will pick 'some' free uid for the user automatically? UPD1. Others do that - see: UPD2. I will send one more PR fixing that. |
We can keep scripts for Ubuntu container but publish Alpine container as the official.
Yes, we can tune |
|
One more thing to change - prepare clickhouse-client image for alpine (BTW - as for me that separate client image is a bit useless, as you can use clickhouse-server for everything). |
|
Yes, and we can rename it to just |
|
p.2 : #19096 |
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Docker image: several improvements for clickhouse-server entrypoint.
Detailed description / Documentation draft:
wgeta readiness check to be compatible with alpinegosuvssu-execImages with those changes are available here
filimonovq/clickhouse-server:21.1.1.5643
filimonovq/clickhouse-server:21.1.1.5643-alpine
P.S. maybe we should start publishing alpine-based images?