Compare commits

...

3 Commits

Author SHA1 Message Date
Lance Vick 30106d26b8
NOCACHE in makefile 2024-01-29 16:23:48 -08:00
Lance Vick f0b5724a34
deterministic perl support 2024-01-29 16:03:19 -08:00
Lance Vick f4350e4cfe
NOCACHE support for make 2024-01-29 16:03:01 -08:00
3 changed files with 18 additions and 2 deletions

View File

@ -1,9 +1,17 @@
export PLATFORM := linux/amd64
export BUILDER := $(shell which docker)
export REGISTRY := stagex
export NOCACHE ?= 0
export MIRRORS := \
https://git.distrust.co/stagex \
stagex
git.distrust.co \
hub.docker.com
ifeq ($(NOCACHE), 1)
NOCACHE_FLAG=--no-cache
else
NOCACHE_FLAG=
endif
export NOCACHE_FLAG
clean_logs := $(shell rm *.log 2>&1 >/dev/null || :)

View File

@ -22,6 +22,13 @@ FROM fetch as build
RUN tar -xf perl-${SRC_VERSION}.tar.xz
WORKDIR perl-${SRC_VERSION}
RUN set -eux; \
printf "\
osvers=\"gnulinux\"\n\
myuname=\"dummy_uname\"\n\
myhostname=\"builder\"\n\
cf_by=\"builder\"\n\
cf_time=\"0\"" \
> config.over; \
./Configure \
-des \
-Dcccdlflags='-fPIC' \

View File

@ -42,6 +42,7 @@ define build
--output type=oci,force-compression=true,name=$(NAME),annotation.org.opencontainers.image.revision=$(REVISION),annotation.org.opencontainers.image.version=$(VERSION),dest=- \
--target $(TARGET) \
$(EXTRA_ARGS) \
$(NOCACHE_FLAG) \
src/$(CATEGORY)/$(NAME) \
| gzip > $@; \
gunzip -c $@ | docker load; \