made the container owned by the current user, so

that it doesn't create anything as root
This commit is contained in:
Karma Riuk
2025-03-01 12:37:21 +01:00
parent 91555e36dc
commit 178c6c67a3

View File

@ -5,6 +5,9 @@ import shutil
tqdm.pandas()
USER_ID = os.getuid() # for container user
GROUP_ID = os.getgid()
EXCLUSION_LIST = [
"edmcouncil/idmp", # requires authentication
"aosp-mirror/platform_frameworks_base", # takes ages to clone
@ -212,6 +215,7 @@ def process_row(repo, client, dest: str, updates: dict, force: bool = False, ver
image="crab-java-env",
command="tail -f /dev/null",
volumes={os.path.abspath(repo_path): {"bind": "/repo", "mode": "rw"}},
user=f"{USER_ID}:{GROUP_ID}",
detach=True,
tty=True
)