mirror of
https://github.com/vyos/vyos-build.git
synced 2025-10-01 20:28:40 +02:00
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]'
91 lines
1.8 KiB
Makefile
91 lines
1.8 KiB
Makefile
SHELL := /bin/bash
|
|
|
|
build_dir := build
|
|
|
|
.PHONY: all
|
|
all:
|
|
@echo "Make what specifically?"
|
|
@echo "The most common target is 'iso'"
|
|
|
|
.PHONY: iso
|
|
.ONESHELL:
|
|
iso: clean
|
|
set -o pipefail
|
|
@./build-vyos-image iso
|
|
exit 0
|
|
|
|
.PHONY: prepare-package-env
|
|
.ONESHELL:
|
|
prepare-package-env:
|
|
@set -e
|
|
@scripts/pbuilder-config
|
|
@scripts/pbuilder-setup
|
|
|
|
.PHONY: checkiso
|
|
.ONESHELL:
|
|
checkiso:
|
|
if [ ! -f build/live-image-amd64.hybrid.iso ]; then
|
|
echo "Could not find build/live-image-amd64.hybrid.iso"
|
|
exit 1
|
|
fi
|
|
|
|
.PHONY: test
|
|
.ONESHELL:
|
|
test: checkiso
|
|
scripts/check-qemu-install --debug --match="$(MATCH)" --uefi build/live-image-amd64.hybrid.iso
|
|
|
|
.PHONY: test-no-interfaces
|
|
.ONESHELL:
|
|
test-no-interfaces: checkiso
|
|
scripts/check-qemu-install --debug --match="$(MATCH)" --no-interfaces build/live-image-amd64.hybrid.iso
|
|
|
|
.PHONY: testd
|
|
.ONESHELL:
|
|
testd: checkiso
|
|
scripts/check-qemu-install --debug --configd build/live-image-amd64.hybrid.iso
|
|
|
|
.PHONY: testc
|
|
.ONESHELL:
|
|
testc: checkiso
|
|
scripts/check-qemu-install --debug --configd --configtest build/live-image-amd64.hybrid.iso
|
|
|
|
.PHONY: testraid
|
|
.ONESHELL:
|
|
testraid: checkiso
|
|
scripts/check-qemu-install --debug --configd --raid --configtest build/live-image-amd64.hybrid.iso
|
|
|
|
.PHONY: qemu-live
|
|
.ONESHELL:
|
|
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:
|
|
@set -e
|
|
mkdir -p $(build_dir)
|
|
cd $(build_dir)
|
|
lb clean
|
|
|
|
rm -f config/binary config/bootstrap config/chroot config/common config/source
|
|
rm -f build.log
|
|
rm -f vyos-*.iso
|
|
rm -f *.img
|
|
rm -f *.xz
|
|
rm -f *.vhd
|
|
rm -f *.raw
|
|
rm -f *.tar.gz
|
|
rm -f *.qcow2
|
|
rm -f *.mf
|
|
rm -f *.ovf
|
|
rm -f *.ova
|
|
|
|
.PHONY: purge
|
|
purge:
|
|
rm -rf build packer_build packer_cache testinstall-*.img
|