summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-19 16:16:23 +0200
committerPaul Buetow <paul@buetow.org>2026-03-19 16:16:23 +0200
commit785a255ef24720f5aa33e2bef664ba60329fbb67 (patch)
treeef513e0be93254fdda0130aeddf13c2757b4ed6c /Makefile
parent03dc781a96e3314ec1b8a56998d830b90678f428 (diff)
build: add archive Docker make targetHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b801918..66b4e07 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,14 @@ dockerbuild: checkdockerkernel
sed s/KERNEL/$(KERNEL)/ Dockerfile.in > Dockerfile
docker build . -t ioriot:$(KERNEL)
docker run -v $(PWD)/docker/opt:/opt -e 'KERNEL=$(KERNEL)' -it ioriot:$(KERNEL) make all test install
+dockerbuildarchive: checkdockerkernel
+ bash -c 'test ! -d $(PWD)/docker/opt/ && mkdir -p $(PWD)/docker/opt/; exit 0'
+ bash -c 'test -f /etc/fedora-release && sudo chcon -Rt svirt_sandbox_file_t $(PWD)/docker/opt; exit 0'
+ bash -c 'test -f /etc/centos-release && sudo chcon -Rt svirt_sandbox_file_t $(PWD)/docker/opt; exit 0'
+ bash -c 'test -f /etc/redhat-release && sudo chcon -Rt svirt_sandbox_file_t $(PWD)/docker/opt; exit 0'
+ sed s/KERNEL/$(KERNEL)/ Dockerfile.archive.in > Dockerfile.archive
+ docker build --network host -f Dockerfile.archive . -t ioriot-archive:$(KERNEL)
+ docker run --rm -v $(PWD)/docker/opt:/opt -e 'KERNEL=$(KERNEL)' ioriot-archive:$(KERNEL) make all test install
dockerclean:
bash -c 'test -d $(PWD)/docker && rm -Rfv $(PWD)/docker; exit 0'
jenkins: checkdockerkernel