Skip to content
Permalink
Browse files
feat(buildah): configurable Ulimit via $WERF_BUILDAH_ULIMIT
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Jul 25, 2022
1 parent 5a6d0f0 commit 734963a4301b120a3a8d1e09402ac98df79fc306
Showing 1 changed file with 4 additions and 0 deletions.
@@ -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,

0 comments on commit 734963a

Please sign in to comment.