From 22ad4a05390e5a3cdcb7e0dae794f3eda0a68f4b Mon Sep 17 00:00:00 2001 From: Fengping Hu Date: Wed, 21 Aug 2024 11:12:10 -0500 Subject: [PATCH 1/2] mount /etc/passwd into docker container --- condor/01-role.conf | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/condor/01-role.conf b/condor/01-role.conf index 2c9f422..a6bafb7 100644 --- a/condor/01-role.conf +++ b/condor/01-role.conf @@ -2,7 +2,8 @@ use ROLE : Execute EXECUTE=/scratch DOCKER=/usr/local/libexec/condor-docker STARTER_JOB_ENVIRONMENT= SITE_NAME=MWT2 -DOCKER_VOLUMES = DATA +DOCKER_VOLUMES = DATA,PW DOCKER_VOLUME_DIR_DATA = /data -DOCKER_MOUNT_VOLUMES = DATA +DOCKER_VOLUME_DIR_PW = /etc/passwd +DOCKER_MOUNT_VOLUMES = DATA, PW DOCKER_LOG_DRIVER_NONE = false From fe2bf4ca015137eb0dfc0b3dac44b42aa78a5a9b Mon Sep 17 00:00:00 2001 From: Fengping Hu Date: Wed, 21 Aug 2024 11:13:07 -0500 Subject: [PATCH 2/2] copy /etc/passwd into dind via shared volume --- scripts/sync_users_wrapper.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/sync_users_wrapper.sh b/scripts/sync_users_wrapper.sh index aa48240..cef7083 100755 --- a/scripts/sync_users_wrapper.sh +++ b/scripts/sync_users_wrapper.sh @@ -4,3 +4,4 @@ echo "Sleeping for $TIME seconds" sleep $TIME cd /usr/local/ciconnect source /usr/local/ciconnect/config && ./sync_users.sh -u root.atlas-af -g root.atlas-af -e https://api.ci-connect.net:18080 >> /var/log/provisioner.log 2>&1 +[[ -d /passwd ]] && cp /etc/passwd /passwd