mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
fn: add storage opt size support (#860)
Added env FN_MAX_FS_SIZE_MB, which if defined and non-zero is passed to docker as storage opt size. We do not validate if this option is supported by docker currently. This is because it's difficult to actually validate this since it not only depends on storage driver and its backing filesystem, but also the mount options used to mount that fs.
This commit is contained in:
@@ -113,6 +113,9 @@ type ContainerTask interface {
|
||||
// CPUs in milli CPU units
|
||||
CPUs() uint64
|
||||
|
||||
// Filesystem size limit for the container, in megabytes.
|
||||
FsSize() uint64
|
||||
|
||||
// WorkDir returns the working directory to use for the task. Empty string
|
||||
// leaves it unset.
|
||||
WorkDir() string
|
||||
|
||||
Reference in New Issue
Block a user