mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
set uid gid
This commit is contained in:
parent
77c2b9e5fc
commit
efd8ea7757
@ -81,10 +81,13 @@ def get_run_command(
|
||||
envs += [f"-e {e}" for e in additional_envs]
|
||||
|
||||
env_str = " ".join(envs)
|
||||
uid = os.getuid()
|
||||
gid = os.getgid()
|
||||
|
||||
return (
|
||||
f"docker run "
|
||||
f"{ci_logs_args} "
|
||||
f"--user {uid}:{gid} "
|
||||
f"--workdir=/fuzzers "
|
||||
f"--volume={fuzzers_path}:/fuzzers "
|
||||
f"--volume={repo_path}/tests:/usr/share/clickhouse-test "
|
||||
@ -215,9 +218,6 @@ def main():
|
||||
|
||||
stopwatch = Stopwatch()
|
||||
|
||||
data_path = "/var/lib/clickhouse"
|
||||
os.makedirs(data_path, exist_ok=True)
|
||||
|
||||
temp_path = Path(TEMP_PATH)
|
||||
reports_path = Path(REPORT_PATH)
|
||||
temp_path.mkdir(parents=True, exist_ok=True)
|
||||
|
Loading…
Reference in New Issue
Block a user