diff --git a/pkg/buildah/native_linux.go b/pkg/buildah/native_linux.go index 50c4eec18b..a10b322539 100644 --- a/pkg/buildah/native_linux.go +++ b/pkg/buildah/native_linux.go @@ -117,6 +117,10 @@ func NewNativeBuildah(commonOpts CommonBuildahOpts, opts NativeModeOpts) (*Nativ ShmSize: DefaultShmSize, } + if ulimit := os.Getenv("WERF_BUILDAH_ULIMIT"); ulimit != "" { + b.DefaultCommonBuildOptions.Ulimit = strings.Split(ulimit, ",") + } + imgstor.Transport.SetStore(b.Store) runtime, err := libimage.RuntimeFromStore(b.Store, &libimage.RuntimeOptions{ SystemContext: &b.DefaultSystemContext,