1- .PHONY : help build build-config-svc build- bootc push push-config-svc push-bootc
1+ .PHONY : help build build-bootc push push-bootc
22
33# Default image tags
4- CONFIG_SVC_IMG ?= quay.io/jumpstarter-dev/microshift/config-svc:latest
54BOOTC_IMG ?= quay.io/jumpstarter-dev/microshift/bootc:latest
65
76
@@ -10,11 +9,7 @@ help: ## Display this help
109
1110# #@ Build
1211
13- build : build-config-svc # # Build config-svc container (default target)
14-
15- build-config-svc : # # Build the config-svc container image
16- @echo " Building config-svc container: $( CONFIG_SVC_IMG) "
17- cd config-svc && podman build -t $(CONFIG_SVC_IMG ) -f Containerfile .
12+ build : build-bootc # # Build bootc image (default target)
1813
1914build-bootc : # # Build the bootc image with MicroShift
2015 @echo " Building bootc image: $( BOOTC_IMG) : buinding as root to be on the container storage from root"
@@ -39,27 +34,28 @@ output/qcow2/disk.qcow2: ## Build a bootable QCOW2 image from the bootc image
3934 $(BOOTC_IMG )
4035 @echo " QCOW2 image built successfully in ./output/"
4136
42- # #@ Push
37+ build-image : build-bootc # # Build the the bootc based qcow2 image
38+ @echo " Building image: output/qcow2/disk.qcow2"
39+ sudo rm output/qcow2/disk.qcow2
40+ make output/qcow2/disk.qcow2
41+ @echo " Image built successfully in ./output/"
4342
44- push : push-config-svc # # Push config-svc container to registry
43+ # #@ Push
4544
46- push-config-svc : # # Push the config-svc container image to registry
47- @echo " Pushing config-svc container: $( CONFIG_SVC_IMG) "
48- podman push $(CONFIG_SVC_IMG )
45+ push : push-bootc # # Push bootc image to registry
4946
5047push-bootc : # # Push the bootc image to registry
5148 @echo " Pushing bootc image: $( BOOTC_IMG) "
5249 podman push $(BOOTC_IMG )
5350
5451# #@ Development
5552
56- build-all : build-config-svc build- bootc # # Build both config-svc and bootc images
53+ build-all : build-bootc # # Build bootc image
5754
58- push-all : push-config-svc push- bootc # # Push both images to registry
55+ push-all : push-bootc # # Push bootc image to registry
5956
6057clean : # # Clean up local images and build artifacts
6158 @echo " Removing local images..."
62- -podman rmi $(CONFIG_SVC_IMG )
6359 -podman rmi $(BOOTC_IMG )
6460 @echo " Removing QCOW2 output..."
6561 -sudo rm -rf output/qcow2/disk.qcow2
0 commit comments