You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was mentioned at least twice by users so I picked it up today. I already ported a working dagger.#Export saving the tar into an dagger.#FS. I'm going to make the dagger.#Load abstraction on top of it.
I know there's a performance issue for buffering in memory, I'm leaving optimizations to last. Is it ok to export to a temporary dir in the client machine, or is there a better way?
I know there's a performance issue for buffering in memory, I'm leaving optimizations to last. Is it ok to export to a temporary dir in the client machine, or is there a better way?
Turns out it was not just about performance, the problem was sending the entire tar in LLB (e.g. WriteFile). There's a maximum message size with buildit and we were exceeding it very easily. It worked with alpine, but as soon as we had something just a little bit bigger, it would fail.
It wasn't possible pre-Europa, but I think the solution would be to create a temporary directory in PreRun and add it to LocalDirectories. Then in Run export to that local directory and create a #FS using llb.Local.
That way we avoid keeping the tar in memory AND avoid sending it as bytes in LLB
Reacted by Helder Correia and Guillaume de Rouville
Activity
aluzzardi commentedon Jan 25, 2022
Pushing back milestone
helderco commentedon Mar 16, 2022
This was mentioned at least twice by users so I picked it up today. I already ported a working
dagger.#Exportsaving the tar into andagger.#FS. I'm going to make thedagger.#Loadabstraction on top of it.I know there's a performance issue for buffering in memory, I'm leaving optimizations to last. Is it ok to export to a temporary dir in the client machine, or is there a better way?
aluzzardi commentedon Mar 16, 2022
Turns out it was not just about performance, the problem was sending the entire tar in LLB (e.g. WriteFile). There's a maximum message size with buildit and we were exceeding it very easily. It worked with
alpine, but as soon as we had something just a little bit bigger, it would fail.It wasn't possible pre-Europa, but I think the solution would be to create a temporary directory in
PreRunand add it toLocalDirectories. Then in Run export to that local directory and create a #FS usingllb.Local.That way we avoid keeping the tar in memory AND avoid sending it as bytes in LLB