set uid gid

This commit is contained in:
Yakov Olkhovskiy 2024-10-24 03:59:03 +00:00
parent 77c2b9e5fc
commit efd8ea7757

View File

@ -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)