what about directory permissions? I'm playing around with dagger shell. I'm building code in one container, then I want to mount artifacts in another for post-processing (different toolset). Problem is, the first container runs as root, the other -- as uid=1000. And first container's artifacts are behind a permissions' barrier to the other container's processes. Is there a dagger-suggested way to remediate it? Or do I have to chown -R 1000 in the first container?
allure=$(
container |
from frankescobar/allure-docker-service |
with-directory /src $($ctr | directory /src/build/) |
with-workdir /src |
with-exec -- ls -l ./
)
37 : Container.withExec DONE [5.9s]
37 : [5.9s] | total 76
37 : [5.9s] | drwxr-xr-x 7 root root 4096 Apr 1 12:31 allure-report
37 : [5.9s] | drwxr-xr-x 2 root root 73728 Apr 1 12:31 allure-results