Open EinarElen opened 5 months ago
Thank you for the report! I'm guessing this is indeed a bug that I originally ran into when attempting to test on MacOS https://github.com/tomeichlersmith/denv/issues/71 which I gave up on since develop-by-CI is an arduous process.
Since I do not have access to MacOS, I will need to ask you to report the outputs of some commands.
So the UID/GID isn't setup in the container, but does the mapping work for files being written from in the container?
$ denv touch new-file
$ ls -l new-file
# should show your username as owner of new file
Before I dive into googling about docker on MacOS, I'd like to make sure the flags are what I expect. Please run
DENV_DEBUG=1 denv whoami
and post the result. This will be very long since the environment variable deduction is included, but I only need the last few lines (the docker
command itself which will be very long and everything after it).
I now realize that MacOS does not use the /etc/passwd file like on Linux. This might mean a more difficult refactor of denv to support user mapping on MacOS as well as Linux (bare or WSL). I have yet to find a good run-time solution online.
1:
Bash: einarelen@velka:~/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp denv touch new-file
Bash: einarelen@velka:~/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp touch file
Bash: einarelen@velka:~/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp ls -al
total 0
drwxr-xr-x 4 einarelen staff 128 Mar 31 17:39 .
drwxr-xr-x 34 einarelen staff 1088 Mar 31 17:39 ..
-rw-r--r-- 1 einarelen staff 0 Mar 31 17:39 file
-rw-r--r-- 1 einarelen staff 0 Mar 31 17:39 new-file
2:
+ '[' -n '' ']'
+ _denv_bad_env_var_name_regex='^(DENV|HOST|HOSTNAME|HOME|LANG|LC_CTYPE|PATH|SHELL|XDG_.*_DIRS|^_)'
+ _denv whoami
+ '[' 1 -eq 0 ']'
+ case "$1" in
+ _denv_load_config
+ '[' -z '' ']'
+ _denv_deduce_workspace
++ pwd -P
+ denv_workspace=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp
+ '[' /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp '!=' / ']'
+ '[' -d /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp/.denv ']'
++ dirname /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp
+ denv_workspace=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8
+ '[' /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 '!=' / ']'
+ '[' -d /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/.denv ']'
+ return 0
+ . /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/.denv/config
++ denv_name=G4Py8
++ denv_image=ldmx/local:91-pythia8-support-dev-mt-debug
++ denv_shell='/bin/bash -i'
++ denv_mounts=
++ denv_env_var_copy_all=true
++ denv_env_var_copy=
++ denv_env_var_set='ASAN_OPTIONS=detect_leaks=0 LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64:'
+ denv_image_cache=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/.denv/images
+ '[' -n '' ']'
+ command -v docker
+ denv_runner=docker
+ _denv_info 'using docker as runner'
+ :
++ printenv
++ grep =
++ grep -Ev ' |"|`|\$'
++ grep -Ev '^(DENV|HOST|HOSTNAME|HOME|LANG|LC_CTYPE|PATH|SHELL|XDG_.*_DIRS|^_)'
+ copyable_environment='MANPATH=/opt/homebrew/share/man::
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/
LDMX_BASE=/Users/einarelen/ldmx/umpg
TERM_PROGRAM_VERSION=452
TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152
USER=einarelen
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners
LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797
LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt
PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=3
LOGNAME=einarelen
LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal
INFOPATH=/opt/homebrew/share/info:
SECURITYSESSIONID=186b3'
+ '[' true = true ']'
+ denv_environment='MANPATH=/opt/homebrew/share/man::
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/
LDMX_BASE=/Users/einarelen/ldmx/umpg
TERM_PROGRAM_VERSION=452
TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152
USER=einarelen
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners
LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797
LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt
PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=3
LOGNAME=einarelen
LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal
INFOPATH=/opt/homebrew/share/info:
SECURITYSESSIONID=186b3'
+ denv_environment='MANPATH=/opt/homebrew/share/man::
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/
LDMX_BASE=/Users/einarelen/ldmx/umpg
TERM_PROGRAM_VERSION=452
TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152
USER=einarelen
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners
LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797
LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt
PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=3
LOGNAME=einarelen
LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal
INFOPATH=/opt/homebrew/share/info:
SECURITYSESSIONID=186b3 ASAN_OPTIONS=detect_leaks=0 LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64:'
+ denv_environment='MANPATH=/opt/homebrew/share/man::
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/
LDMX_BASE=/Users/einarelen/ldmx/umpg
TERM_PROGRAM_VERSION=452
TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152
USER=einarelen
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners
LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797
LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt
PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=3
LOGNAME=einarelen
LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal
INFOPATH=/opt/homebrew/share/info:
SECURITYSESSIONID=186b3 ASAN_OPTIONS=detect_leaks=0 LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: DENV_NAME=G4Py8'
+ denv_environment='MANPATH=/opt/homebrew/share/man::
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/
LDMX_BASE=/Users/einarelen/ldmx/umpg
TERM_PROGRAM_VERSION=452
TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152
USER=einarelen
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners
LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797
LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt
PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=3
LOGNAME=einarelen
LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal
INFOPATH=/opt/homebrew/share/info:
SECURITYSESSIONID=186b3 ASAN_OPTIONS=detect_leaks=0 LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: DENV_NAME=G4Py8 DENV_RUNNER=docker'
+ denv_environment='MANPATH=/opt/homebrew/share/man::
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/
LDMX_BASE=/Users/einarelen/ldmx/umpg
TERM_PROGRAM_VERSION=452
TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152
USER=einarelen
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners
LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797
LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt
PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=3
LOGNAME=einarelen
LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal
INFOPATH=/opt/homebrew/share/info:
SECURITYSESSIONID=186b3 ASAN_OPTIONS=detect_leaks=0 LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: DENV_NAME=G4Py8 DENV_RUNNER=docker DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug'
+ case "${denv_runner}" in
+ denv_environment='MANPATH=/opt/homebrew/share/man::
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/
LDMX_BASE=/Users/einarelen/ldmx/umpg
TERM_PROGRAM_VERSION=452
TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152
USER=einarelen
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners
LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797
LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt
PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=3
LOGNAME=einarelen
LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal
INFOPATH=/opt/homebrew/share/info:
SECURITYSESSIONID=186b3 ASAN_OPTIONS=detect_leaks=0 LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: DENV_NAME=G4Py8 DENV_RUNNER=docker DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug HOME=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8'
+ '[' -n x ']'
+ denv_environment='MANPATH=/opt/homebrew/share/man::
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/
LDMX_BASE=/Users/einarelen/ldmx/umpg
TERM_PROGRAM_VERSION=452
TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152
USER=einarelen
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners
LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797
LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt
PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=3
LOGNAME=einarelen
LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal
INFOPATH=/opt/homebrew/share/info:
SECURITYSESSIONID=186b3 ASAN_OPTIONS=detect_leaks=0 LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: DENV_NAME=G4Py8 DENV_RUNNER=docker DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug HOME=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 DENV_DEBUG=1'
++ env -i MANPATH=/opt/homebrew/share/man:: TERM_PROGRAM=Apple_Terminal TERM=xterm-256color TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ LDMX_BASE=/Users/einarelen/ldmx/umpg TERM_PROGRAM_VERSION=452 TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 USER=einarelen SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp XPC_FLAGS=0x0 XPC_SERVICE_NAME=0 SHLVL=3 LOGNAME=einarelen LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal INFOPATH=/opt/homebrew/share/info: SECURITYSESSIONID=186b3 ASAN_OPTIONS=detect_leaks=0 LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: DENV_NAME=G4Py8 DENV_RUNNER=docker DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug HOME=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 DENV_DEBUG=1
+ denv_environment='MANPATH=/opt/homebrew/share/man::
TERM_PROGRAM=Apple_Terminal
TERM=xterm-256color
TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/
LDMX_BASE=/Users/einarelen/ldmx/umpg
TERM_PROGRAM_VERSION=452
TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152
USER=einarelen
SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners
LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797
LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt
PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp
XPC_FLAGS=0x0
XPC_SERVICE_NAME=0
SHLVL=3
LOGNAME=einarelen
LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal
INFOPATH=/opt/homebrew/share/info:
SECURITYSESSIONID=186b3
ASAN_OPTIONS=detect_leaks=0
LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64:
DENV_NAME=G4Py8
DENV_RUNNER=docker
DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug
HOME=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8
DENV_DEBUG=1'
+ _denv_run whoami
++ uname -n
+ _hostname=G4Py8.velka.local
+ '[' -d /tmp/.X11-unix ']'
+ denv_mounts=' /tmp/.X11-unix'
+ denv_mounts=' /tmp/.X11-unix /Users/einarelen/.local/bin/_denv_entrypoint'
+ case "${denv_runner}" in
+ interactive=
+ tty -s
+ interactive='--interactive --tty'
+ denv_mounts=' /tmp/.X11-unix /Users/einarelen/.local/bin/_denv_entrypoint /etc/passwd /etc/group'
++ _denv_mounts_to_args --volume
++ mount_args=
++ for mount in '${denv_mounts}'
++ mount_args='--volume /tmp/.X11-unix:/tmp/.X11-unix '
++ for mount in '${denv_mounts}'
++ mount_args='--volume /Users/einarelen/.local/bin/_denv_entrypoint:/Users/einarelen/.local/bin/_denv_entrypoint --volume /tmp/.X11-unix:/tmp/.X11-unix '
++ for mount in '${denv_mounts}'
++ mount_args='--volume /etc/passwd:/etc/passwd --volume /Users/einarelen/.local/bin/_denv_entrypoint:/Users/einarelen/.local/bin/_denv_entrypoint --volume /tmp/.X11-unix:/tmp/.X11-unix '
++ for mount in '${denv_mounts}'
++ mount_args='--volume /etc/group:/etc/group --volume /etc/passwd:/etc/passwd --volume /Users/einarelen/.local/bin/_denv_entrypoint:/Users/einarelen/.local/bin/_denv_entrypoint --volume /tmp/.X11-unix:/tmp/.X11-unix '
++ echo '--volume /etc/group:/etc/group --volume /etc/passwd:/etc/passwd --volume /Users/einarelen/.local/bin/_denv_entrypoint:/Users/einarelen/.local/bin/_denv_entrypoint --volume /tmp/.X11-unix:/tmp/.X11-unix '
+ mounts='--volume /etc/group:/etc/group --volume /etc/passwd:/etc/passwd --volume /Users/einarelen/.local/bin/_denv_entrypoint:/Users/einarelen/.local/bin/_denv_entrypoint --volume /tmp/.X11-unix:/tmp/.X11-unix '
+ mounts='--volume /etc/group:/etc/group --volume /etc/passwd:/etc/passwd --volume /Users/einarelen/.local/bin/_denv_entrypoint:/Users/einarelen/.local/bin/_denv_entrypoint --volume /tmp/.X11-unix:/tmp/.X11-unix --volume /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8'
++ _denv_environment_to_args --env
++ env_args=
++ for ev in '${denv_environment}'
++ env_args='--env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env SECURITYSESSIONID=186b3 --env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env ASAN_OPTIONS=detect_leaks=0 --env SECURITYSESSIONID=186b3 --env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: --env ASAN_OPTIONS=detect_leaks=0 --env SECURITYSESSIONID=186b3 --env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env DENV_NAME=G4Py8 --env LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: --env ASAN_OPTIONS=detect_leaks=0 --env SECURITYSESSIONID=186b3 --env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env DENV_RUNNER=docker --env DENV_NAME=G4Py8 --env LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: --env ASAN_OPTIONS=detect_leaks=0 --env SECURITYSESSIONID=186b3 --env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug --env DENV_RUNNER=docker --env DENV_NAME=G4Py8 --env LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: --env ASAN_OPTIONS=detect_leaks=0 --env SECURITYSESSIONID=186b3 --env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env HOME=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 --env DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug --env DENV_RUNNER=docker --env DENV_NAME=G4Py8 --env LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: --env ASAN_OPTIONS=detect_leaks=0 --env SECURITYSESSIONID=186b3 --env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ for ev in '${denv_environment}'
++ env_args='--env DENV_DEBUG=1 --env HOME=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 --env DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug --env DENV_RUNNER=docker --env DENV_NAME=G4Py8 --env LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: --env ASAN_OPTIONS=detect_leaks=0 --env SECURITYSESSIONID=186b3 --env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ echo '--env DENV_DEBUG=1 --env HOME=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 --env DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug --env DENV_RUNNER=docker --env DENV_NAME=G4Py8 --env LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: --env ASAN_OPTIONS=detect_leaks=0 --env SECURITYSESSIONID=186b3 --env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
+ environment='--env DENV_DEBUG=1 --env HOME=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 --env DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug --env DENV_RUNNER=docker --env DENV_NAME=G4Py8 --env LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: --env ASAN_OPTIONS=detect_leaks=0 --env SECURITYSESSIONID=186b3 --env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: '
++ id -u einarelen
++ id -g einarelen
+ userspec='--user 501:20'
+ '[' docker = podman ']'
++ pwd -P
+ docker run --rm --network host --interactive --tty --volume /etc/group:/etc/group --volume /etc/passwd:/etc/passwd --volume /Users/einarelen/.local/bin/_denv_entrypoint:/Users/einarelen/.local/bin/_denv_entrypoint --volume /tmp/.X11-unix:/tmp/.X11-unix --volume /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 --hostname G4Py8.velka.local --env DENV_DEBUG=1 --env HOME=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 --env DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug --env DENV_RUNNER=docker --env DENV_NAME=G4Py8 --env LD_LIBRARY_PATH=/externals/lib:/usr/local/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/install/lib64: --env ASAN_OPTIONS=detect_leaks=0 --env SECURITYSESSIONID=186b3 --env INFOPATH=/opt/homebrew/share/info: --env LDMX_CONTAINER_DISPLAY=docker.for.mac.host.internal --env LOGNAME=einarelen --env SHLVL=3 --env XPC_SERVICE_NAME=0 --env XPC_FLAGS=0x0 --env PWD=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --env LDMX_DOCKER_TAG=ldmx/local:91-pythia8-support-dev-mt --env LaunchInstanceID=2879C456-EB20-4F6D-BDA6-AC07874F0797 --env SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.SG0wJfhLTf/Listeners --env USER=einarelen --env TERM_SESSION_ID=EFA9CDA8-5442-4DAB-A55C-0C8EE6BE8152 --env TERM_PROGRAM_VERSION=452 --env LDMX_BASE=/Users/einarelen/ldmx/umpg --env TMPDIR=/var/folders/g6/bxjlcl8n7bq1mxrzlw8tn_xr0000gn/T/ --env TERM=xterm-256color --env TERM_PROGRAM=Apple_Terminal --env MANPATH=/opt/homebrew/share/man:: --workdir /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/tmp --entrypoint /Users/einarelen/.local/bin/_denv_entrypoint --user 501:20 ldmx/local:91-pythia8-support-dev-mt-debug whoami
+ [ -n ]
+ [ -z x ]
+ [ -z x ]
+ [ -z x ]
+ [ -z x ]
+ [ ! -f /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8/.denv/skel-init ]
+ sh -lc whoami
whoami: cannot find name for user ID 501
Thank you, can you post the output of the following command? Purpose: I am trimming it down to not copy in the user and your environment variables. I want to see what docker-on-MacOS defaults the user to be. If its some sort of root user inside the container, then I can maybe do some user-creation live within the entrypoint.
docker run \
--rm --network host --interactive --tty \
--volume /Users/einarelen/.local/bin/_denv_entrypoint:/Users/einarelen/.local/bin/_denv_entrypoint \
--volume /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 \
--entrypoint /Users/einarelen/.local/bin/_denv_entrypoint \
ldmx/local:91-pythia8-support-dev-mt-debug id
I'm... guessing this isn't what you expected?
ERROR: The necessary environment variables have not been passed into the runner.
_denv_entrypoint should only be run within a container launced by denv.
Yep, forgot that I had that check in there, try
docker run \
--rm --network host --interactive --tty \
--volume /Users/einarelen/.local/bin/_denv_entrypoint:/Users/einarelen/.local/bin/_denv_entrypoint \
--volume /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 \
--env DENV_RUNNER=docker \
--env DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug \
--env DENV_NAME=G4Py8 \
--env HOME=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 \
--entrypoint /Users/einarelen/.local/bin/_denv_entrypoint \
ldmx/local:91-pythia8-support-dev-mt-debug id
uid=0(root) gid=0(root) groups=0(root)
cool, that's what I hoped, time to look at distrobox's code and see how they create the user in their entrypoint
Actually, docker
now has a --userns=host
option which I was unaware of before. If this works as documented, you should see the same output from the following two commands.
ID on host
id
ID in container
docker run \
--rm --network host --interactive --tty \
--volume /Users/einarelen/.local/bin/_denv_entrypoint:/Users/einarelen/.local/bin/_denv_entrypoint \
--volume /Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8:/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 \
--env DENV_RUNNER=docker \
--env DENV_IMAGE=ldmx/local:91-pythia8-support-dev-mt-debug \
--env DENV_NAME=G4Py8 \
--env HOME=/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8 \
--entrypoint /Users/einarelen/.local/bin/_denv_entrypoint \
--userns=host \
ldmx/local:91-pythia8-support-dev-mt-debug id
Can you give these a try?
Nope, still getting root :(
shoot, I was really excited for a moment there
Can you try out distrobox? I just want to make sure it is resolving this issue before I delve into its source code.
distrobox create -n test && distrobox enter test -- id
https://github.com/89luca89/distrobox/issues/36
Distrobox isn't available on macs. Podman is if that helps?
Thank you for finding that issue, I always assumed it was. That makes me feel better about struggling with this.
I would like to try a very manual solution that I wanted to avoid since it could increase start-up time, but here we go. The basic idea is to create the user while you are root in the container and then become that user for the rest of the container's lifetime.
I'm looking at these lines of distrobox: https://github.com/89luca89/distrobox/blob/867f4f85c762bc74bf398c8654984b801138e154/distrobox-init#L2009C1-L2030C7 which would then be followed by
sudo -u <username> <cmd>
where <cmd>
is whatever was given to denv. Probably some simple testing with whoami
would suffice.
The more I look into this, the more I believe this is due to a fundamental limitation on how the Linux VMs are spawned on MacOS. With this in mind, I wrote a OS section on the website to give more detail to future users about what type of functionality they can expect.
Describe the bug Attempting to use any tool that checks /etc/passwd for user IDs seems to not work on Mac devices. Examples include
git
or justwhoami
.To Reproduce Steps to reproduce the behavior:
denv
with...whoami
You also see your username in the prompt as I have no name
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add output of
denv version
anddenv config print
here. denv v0.5.0 denv_workspace="/Users/einarelen/ldmx/umpg/ldmx-sw/SimCore/G4Py8" denv_name="G4Py8" denv_image="ldmx/local:91-pythia8-support-dev-mt-debug" denv_mounts="" denv_shell="/bin/bash -i" Docker version 24.0.6, build ed223bc