soma
soma copied to clipboard
Use async streams instead of in-memory load when building image
#85 introduced docker API based image build using in-memory load of build context. This is not a robust behavior as a big build context may consume a lot of memory which can result in OOM exception.
Followings seem to be a good alternatives:
-
FramedReadBased onAsyncReadwithblockingannotation, which requiresRuntimerunning on thread pool. (Soma usescurrent_thread::Runtime) -
futures-fsStarts additional thread pool.
Both requires 'non-current-thread` runtime (or thread pool) running, which is expected to be a big change from current implementations.