Commit Graph

62 Commits

Author SHA1 Message Date
Alexander Nikolaev
885136fce0 Fix missing / 2023-06-29 15:59:22 +03:00
Alexander Nikolaev
cffc1e058c Initialization of the database only once. 2023-06-29 15:57:55 +03:00
Alexey Milovidov
183707be74 Fix the script 2023-02-14 12:05:38 +01:00
Alexey Milovidov
bbcadd2311 Fix the script 2023-02-14 11:57:05 +01:00
Alexey Milovidov
dd79c5f4f6 Easy debugging of clickhouse-server in Docker 2023-02-14 09:49:05 +01:00
Denny Crane
77e3b9baa5
Update entrypoint.sh (#44699)
create xml with user settings if CLICKHOUSE_DEFAULT_ACCESS_MANAGEMENT is set
2022-12-29 21:09:44 +01:00
Alexey Milovidov
71deb8ea31
Fix Docker
Suggested by Lupsik Pupsik in Telegram.
2022-12-18 12:56:31 +03:00
Yakov Olkhovskiy
339aee2c89
do not fail if keys not present 2022-09-22 09:44:44 -04:00
Nikita Mikhaylov
51c29ae772 Done 2022-09-12 21:39:16 +00:00
Nikita Mikhaylov
f621bd0055
Delete old cache directories creation from entrypoint (#40946) 2022-09-04 23:54:05 +02:00
Heena Bansal
7779ac4707
Update entrypoint.sh
Typo error.
2022-08-11 12:01:05 -04:00
HeenaBansal2009
f9347aa9ec Merge branch 'Entrypoint_Issue' of github.com:HeenaBansal2009/ClickHouse into Entrypoint_Issue 2022-08-11 06:51:16 -07:00
HeenaBansal2009
8880171899 Add --no-check-certificate in wget 2022-08-11 06:49:45 -07:00
Alexey Milovidov
c54985ff71
Update entrypoint.sh 2022-08-11 09:46:24 +03:00
HeenaBansal2009
653ad05ce9 Addresed review comments 2022-08-10 21:10:01 -07:00
HeenaBansal2009
0d2aa07b4d Updated entrypoint.sh to listen on https_port if defined 2022-08-10 11:30:06 -07:00
HeenaBansal2009
3658530088 Updated entrypoint.sh to listen on https_port if defined 2022-08-10 11:23:15 -07:00
Alexey Milovidov
67a6b32a89
Update entrypoint.sh 2022-08-05 07:12:50 +03:00
Constantine Peresypkin
0d892b1cac fix broken NFS mkdir introduced in #36341 2022-08-04 13:23:45 +02:00
Nikita Mikhaylov
379d8c5c6a
Chown all directories for multidisk setup (#39121) 2022-08-01 12:08:32 +02:00
Timur Solodovnikov
0c7388aea8
Handling SIGTERM signals from k8s (#39130) 2022-07-12 18:14:05 +02:00
Nikita Mikhaylov
a44157d81d
Allow globs in keys for clickhouse-extract-from-config tool (#38966) 2022-07-08 16:13:32 +02:00
Alexey Milovidov
f614c139f4 Maybe better 2022-05-23 02:06:03 +02:00
Alexey Milovidov
e40396a0e5 Fix Docker 2022-05-11 03:21:08 +02:00
Alexey Milovidov
f3c3935df3 Fix shellcheck 2022-05-11 03:18:28 +02:00
Alexey Milovidov
b7e5a81215 Allow to drop privileges at startup 2022-04-17 00:24:47 +02:00
Alexey Milovidov
dda060063b Remove trash 2022-04-17 00:14:27 +02:00
Constantine Peresypkin
f5787ff0a9 docker: fix root squashed data dirs
if we use some root squashed volume mappings in docker
uid=0 is actually uid=nobody
thus FS operations with uid=0 will fail miserably
and overall it's a strange idea to create dirs under root when
DO_NOT_CHOWN is in effect...
2022-01-26 14:29:27 +02:00
Azat Khuzhin
da90df5658 docker: switch <yandex> to <clickhouse> 2021-10-26 08:53:14 +03:00
Alexey Milovidov
e9e77b4403 .tech -> .com 2021-09-22 03:22:57 +03:00
Mikhail f. Shiryaev
64c35b2511
Disable watchdog in docker by default 2021-07-23 21:42:33 +02:00
Nikolai Kochetov
e0c5dc1449
Update entrypoint.sh 2021-07-20 16:10:29 +03:00
Nikolai Kochetov
4df50d3490
Update entrypoint.sh 2021-07-20 15:02:20 +03:00
Ky Li
9abd7e543c
Update entrypoint.sh
We build clickhouse cluster in k8s by clickhouse-operator. 
clickhouse-server.log is mounted by emptydir on the path `/var/log/clickhouse-server`.
It causes the file system error called `Necessary directory '/var/log/clickhouse-server' isn't owned by user with id '101' `  when  CLICKHOUSE_DO_NOT_CHOWN is set to true(1).
Because emptydir file and dir is owned by root when it started, it has to do the chown cmd.
But it will take a long time to run chown cmd when the cluster has much data (in table data dir), the cluster cannot even restart because of  `initialDelaySeconds`
So chown operation is necessary to check if the file owner and group is owned by user 101.
2021-07-20 12:16:51 +08:00
filimonov
4766576a28
Fix error message to include file path 2021-06-04 10:00:01 +02:00
alesapin
581ab43cfb
Merge pull request #22132 from devwout/fix-docker-entrypoint
Fix docker entrypoint in case http_port is not in the config
2021-03-29 16:31:18 +03:00
Ewout
6fe26493e9 Fix docker entrypoint in case http_port is not in config.
`http_port` can be removed from the configuration when serving HTTP is
not desired. When it is not present, `extract-from-config` will fail,
which will prevent the server from starting.

Only fetch it when it is required for database initialization.
2021-03-25 16:14:48 +01:00
filimonov
4b6b1311ce
Update entrypoint.sh 2021-03-24 22:33:08 +01:00
filimonov
8121c52c53
Update entrypoint.sh
fix for #22100
2021-03-24 22:24:07 +01:00
Marquitos
27933e714b Add 'access_management' configuration to initial setup 2021-02-05 17:39:41 +01:00
filimonov
5e350bb761
Update entrypoint.sh
Fix for #20002
2021-02-02 23:36:09 +01:00
Mikhail Filimonov
9f22bcefb0
Docker: better server entrypoint 2021-01-11 18:24:49 +01:00
Guillaume Tassery
4920bba7de Override value for running scripts on docker-entrypoint-initdb.d with CLICKHOUSE_INIT_TIMEOUT 2020-12-05 09:53:15 +07:00
alekseik1
a4a5b96d4a
do not expose ClickHouse server until initialization is complete 2020-09-24 20:11:12 +03:00
giordyb
d61da39c10
Update entrypoint.sh
without -q option the database does not get created at startup
2020-06-11 17:23:02 +02:00
Ivan Starkov
bdcf1170ce
Instead of forcing IPv4 protocol force wget to use protocols in order 2020-06-09 16:32:49 +03:00
Ivan Starkov
32772073ea
Fix docker-entrypoint-initdb.d wait
Fixes 'Address family not supported by protocol' for any docker-entrypoint-initdb.d script.

wget uses 'localhost' which resolves for both ipv4 and ipv6 with current config (/etc/hosts) and so the wget fails _(Address family not supported by protocol)_ and does not retry.

Forcing it to use IPv4 fixes the issue
2020-06-09 13:52:21 +03:00
Paramtamtam
a55c6763d6
Default user creation fixed 2020-05-04 13:30:05 +05:00
Paramtamtam
cbcd3b9a76
Small fixes 2020-05-04 12:27:57 +05:00
Paramtamtam
a4e61c9556
Revert unimportant changes 2020-05-04 12:20:20 +05:00