From 2de8687de485717a6a2b12bc186f03e4c9d7b5ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Wed, 19 Dec 2018 16:29:02 +0000 Subject: initial docker build support --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7e7099d..0784785 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ +KERNEL ?= $(shell uname -r) DESTDIR=/opt/ioriot all: - $(MAKE) -C systemtap $(MAKE) -C ioriot + $(MAKE) -C systemtap install: - $(MAKE) -C systemtap install $(MAKE) -C ioriot install + $(MAKE) -C systemtap install uninstall: test ! -z $(DESTDIR) && test -d $(DESTDIR) && rm -Rfv $(DESTDIR) || exit 0 deinstall: uninstall @@ -19,3 +20,7 @@ doxygen: doxygen ./docs/doxygen.conf test: $(MAKE) -C ioriot test +dockerbuild: + sed s/KERNELVERSION/$(KERNEL)/ Dockerfile.in > Dockerfile + docker build . -t ioriot:$(KERNEL) + docker run -it ioriot:$(KERNEL) --entrypoint /bin/bash -c 'make' -- cgit v1.2.3