Merge remote-tracking branch 'origin/main'

This commit is contained in:
Lance Vick 2024-01-18 16:23:18 -08:00
commit 137dccc0cc
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,8 @@
# - TARGET defaults to "package" # - TARGET defaults to "package"
# - EXTRA_ARGS will be blindly injected # - EXTRA_ARGS will be blindly injected
# - packages may also define a "test" layer # - packages may also define a "test" layer
# - the ulimit line is to workaround a bug in patch when the nofile limit is too large:
# https://savannah.gnu.org/bugs/index.php?62958
# TODO: # TODO:
# - try to disable networking on fetch layers with something like: # - try to disable networking on fetch layers with something like:
# $(if $(filter fetch,$(lastword $(subst -, ,$(TARGET)))),,--network=none) # $(if $(filter fetch,$(lastword $(subst -, ,$(TARGET)))),,--network=none)
@ -29,6 +31,7 @@ define build
SOURCE_DATE_EPOCH=1 \ SOURCE_DATE_EPOCH=1 \
$(BUILDER) \ $(BUILDER) \
build \ build \
--ulimit nofile=2048:16384 \
-t $(REGISTRY)/$(NAME):$(VERSION) \ -t $(REGISTRY)/$(NAME):$(VERSION) \
--build-arg REGISTRY=$(REGISTRY) \ --build-arg REGISTRY=$(REGISTRY) \
--platform $(PLATFORM) \ --platform $(PLATFORM) \