Hi.
So I have a usecase -- build a codebase and run tests in a preassembled container and collect resulting artifacts. Normally I would be either setting up my workstation by installing all the required tools locally, OR do docker run -v .:/src/ <...> and run my commands there, so that all my created artifacts would automagically be persisted in my cwd.
Thing is, build/test commands produce several output directories: ./target/, ./build/ . I need them both. Based on my previous experience with dagger, dagger does not reference/link/mount directories into containers -- instead it copies them inside. And then I have to explicitly export them at the end of the pipeline.
For some reason my directory --path /src/target/ --output ./target/ directory --path ../build/ --output ./build2/ directory --path ../.m2 --output ./.m2 stopped working for the 'build' directory (it still exports 'target' and '.m2' though...). Then I tried specifying full paths inside the container (i.e. /src/target, /src/build, etc.), but this, to my surprise, didn't work as expected -- even though I specified full paths, they still were treated as relative ones... And appending on top of /src/target (/src/target/src/build/).
So I figured I'll upgrade 0.14β0.17.... With no luck. I still can't get ./build/ exported.
I also tried directory --path /src/target/ export --path ./target/ , but I can't find a way to chain multiple directory exports this way.
Then I tried with-mounted-directory --path /src --source ./ hoping it will mount my src directory just like docker does, but... still, no artifacts appearing in ./build/. And I can't find docs about this function.
Help, please π
don't recognize it either