From 499e8e1cbb90e24acf80d383a69e138cd745807c Mon Sep 17 00:00:00 2001 From: Christian Breunig Date: Sun, 26 Nov 2023 20:12:29 +0100 Subject: 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]' --- Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile') 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: -- cgit v1.2.3