Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 734963a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/buildah/native_linux.go
Expand Up @@ -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,
Expand Down

0 comments on commit 734963a

Please sign in to comment.