aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 9dcc077e9f8e51e8c542ca3e90494ab96d6ea8d2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DIST := debian
CODE := stretch

all:
	apt-get download rpki-rp
	docker build --tag rpki-rp --build-arg 'DIST=${DIST}' --build-arg 'CODE=${CODE}' .

clean:
	git clean -dfx

base:
	sudo debootstrap ${CODE} ${CODE}
	sudo tar -C ${CODE} -c . | docker import - ${DIST}:${CODE}
	sudo rm -rf ${CODE}

.PHONY: all clean base