cchdo / libcchdo

Other
0 stars 1 forks source link

Files created by dockerized libcchdo are owned by root #110

Open cberys opened 3 years ago

cberys commented 3 years ago

files created by dockerized libcchdo are owned by root.

see suggested solution here: https://vsupalov.com/docker-shared-permissions/

full issue description:

alias hydro=‘docker run --rm -e LIBCCHDO_MERGER_DIVISION=CCH -e LIBCCHDO_MERGER_INITIALS=SCD -e LIBCCHDO_MERGER_INSTITUTION=SIO -v pwd:/context cchdo/libcchdo’

if you use the alias ‘hydro’ on ghdc.cchdo.io, the resultant files are owned by root. They should have the same uid/gid as the user who invoked the commands. I should mention here that should be the case even if there’s more than one output file (think CTD exchange and/or netCDF).

Short of being able to sudo/chown/chgrp the files, one must copy them and delete the originals to get the aforementioned preferable outcome.