Compare commits
3 Commits
0b89c0ef11
...
30106d26b8
Author | SHA1 | Date |
---|---|---|
Lance Vick | 30106d26b8 | |
Lance Vick | f0b5724a34 | |
Lance Vick | f4350e4cfe |
12
Makefile
12
Makefile
|
@ -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 || :)
|
||||
|
||||
|
|
|
@ -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' \
|
||||
|
|
|
@ -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; \
|
||||
|
|
Reference in New Issue