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-26 20:13:28 +0100
commit499e8e1cbb90e24acf80d383a69e138cd745807c (patch)
treea4e117b6a5442190d5391e480fa6ee049775bb78 /Makefile
parent0411ec870eb25931efb3e42e68d5212fbb9e9844 (diff)
downloadvyos-build-499e8e1cbb90e24acf80d383a69e138cd745807c.tar.gz
vyos-build-499e8e1cbb90e24acf80d383a69e138cd745807c.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]'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f9b5903f..393ef3b7 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,11 @@ testraid: checkiso
qemu-live: checkiso
scripts/check-qemu-install --qemu-cmd 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: