#Hey folks. Diving a bit into Dagger

1 messages ยท Page 1 of 1 (latest)

low harness
sturdy sequoia
#

This shows how you can mount a directory to a container spawned by the Dagger engine container. What I'm aiming for is mounting the directory to the Dagger engine container itself, since I need golang to process the directory

urban egret
#

^ as you can see from that code, I pass a File to my module function, I Export that file to the module runtime container, and then I can just use native go (or go-git ) functions to read from those files as if they were local

#

cc @spark maple cookbook material

sturdy sequoia
#

I'm a bit confused. I thought that Export writes to the host (at least that's what the docs say)

urban egret
#

when you're using dagger modules, if you call Export withing your pipeline code, that exports it to the "runtime container"

#

which will be the Go runtime in your case

sturdy sequoia
#

Seems a bit like a hack to copy files instead of just allowing mounting to the engine container ๐Ÿ˜„

#

But thanks. It does seem to work