From e6fce11310541119a82a57b20cb326712445c455 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Wed, 4 Sep 2019 16:30:35 +0000 Subject: Add "base:" target. --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3681b00..9dcc077 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,16 @@ +DIST := debian +CODE := stretch + all: apt-get download rpki-rp - docker build -t rpki-rp . + docker build --tag rpki-rp --build-arg 'DIST=${DIST}' --build-arg 'CODE=${CODE}' . clean: git clean -dfx -.PHONY: all clean +base: + sudo debootstrap ${CODE} ${CODE} + sudo tar -C ${CODE} -c . | docker import - ${DIST}:${CODE} + sudo rm -rf ${CODE} + +.PHONY: all clean base -- cgit v1.2.3