mirror of
https://github.com/Monadical-SAS/cubbi.git
synced 2025-12-21 04:39:07 +00:00
fix(uid): correctly pass uid/gid to project
This commit is contained in:
@@ -188,11 +188,9 @@ class ContainerManager:
|
|||||||
# Prepare environment variables
|
# Prepare environment variables
|
||||||
env_vars = environment or {}
|
env_vars = environment or {}
|
||||||
|
|
||||||
# Add TARGET_UID and TARGET_GID for entrypoint script
|
# Add MC_USER_ID and MC_GROUP_ID for entrypoint script
|
||||||
if uid is not None:
|
env_vars["MC_USER_ID"] = str(uid) if uid is not None else "1000"
|
||||||
env_vars["TARGET_UID"] = str(uid)
|
env_vars["MC_GROUP_ID"] = str(gid) if gid is not None else "1000"
|
||||||
if gid is not None:
|
|
||||||
env_vars["TARGET_GID"] = str(gid)
|
|
||||||
|
|
||||||
# Set SSH environment variable
|
# Set SSH environment variable
|
||||||
env_vars["MC_SSH_ENABLED"] = "true" if ssh else "false"
|
env_vars["MC_SSH_ENABLED"] = "true" if ssh else "false"
|
||||||
|
|||||||
Reference in New Issue
Block a user