summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-11-26 20:12:29 +0100
committerChristian Breunig <christian@breunig.cc>2023-11-27 08:46:58 +0100
commit98d05b1131be6e650b4da931929fa0c08d3a8723 (patch)
treec144b538392779ad527845da55a9f225aea77cd7 /Makefile
parentf9f26b1d0a30cb12bd94a4accd1b5271ef046628 (diff)
downloadvyos-build-98d05b1131be6e650b4da931929fa0c08d3a8723.tar.gz
vyos-build-98d05b1131be6e650b4da931929fa0c08d3a8723.zip
Makefile: T2640: add helper to convert ISO to OCI image to start a container
Use either "make oci" or call the script manually: $ scripts/iso-to-oci build/live-image-amd64.hybrid.iso I: mount ISO build/live-image-amd64.hybrid.iso I: extracting squashfs content I: generate OCI container image vyos-1.5-strongswan-202311241125.tar I: to import the previously generated OCI image to your local images run: docker import vyos-1.5-strongswan-202311241125.tar vyos:1.5-strongswan-202311241125 --change 'CMD [/sbin/init]' (cherry picked from commit 499e8e1cbb90e24acf80d383a69e138cd745807c)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 74b17c7c..f4c3b61d 100644
--- a/Makefile
+++ b/Makefile
@@ -54,6 +54,11 @@ testc: checkiso
testraid: checkiso
scripts/check-qemu-install --debug --configd --raid --configtest build/live-image-amd64.hybrid.iso
+.PHONE: oci
+.ONESHELL:
+oci: checkiso
+ scripts/iso-to-oci build/live-image-amd64.hybrid.iso
+
.PHONY: clean
.ONESHELL:
clean: