Skip to content

Commit

Permalink
M #-: Various fixes for 6.10.0-3 (#20)
Browse files Browse the repository at this point in the history
- Update one-apps submodule to latest master
- Bump version to 6.10.0-3
- Use common.pkr.hcl instead of plugins.pkr.hcl
- Use alma8 image from local one-apps in service_example
- Add various makefile fixes
  • Loading branch information
sk4zuzu authored Jan 24, 2025
1 parent ef5372a commit e753ef9
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 16 deletions.
16 changes: 8 additions & 8 deletions apps-code/community-apps/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ include Makefile.config
-include Makefile.local

# services
services: $(patsubst %,packer-%,$(SERVICES))
services: $(SERVICES:%=packer-%)

# allow individual services targets (e.g., "make service_Lithops")
$(SERVICES): %: packer-%

# aliases + dependency
packer-%: ${DIR_EXPORT}/%.qcow2
@${INFO} "Packer ${*} done"
packer-%: $(DIR_EXPORT)/%.qcow2
@$(INFO) 'Packer $* done'

# run packer build for given distro or service
${DIR_EXPORT}/%.qcow2:
$(eval DISTRO_NAME := $(shell echo ${*} | sed 's/[0-9].*//'))
$(eval DISTRO_VER := $(shell echo ${*} | sed 's/^.[^0-9]*\(.*\)/\1/'))
packer/build.sh "${DISTRO_NAME}" "${DISTRO_VER}" ${@}
$(DIR_EXPORT)/%.qcow2:
$(eval DISTRO_NAME := $(shell echo $* | sed 's/[0-9].*//'))
$(eval DISTRO_VER := $(shell echo $* | sed 's/^.[^0-9]*\(.*\)/\1/'))
packer/build.sh '$(DISTRO_NAME)' '$(DISTRO_VER)' $@

clean:
-rm -rf ${DIR_EXPORT}/*
-if [ -d '$(DIR_EXPORT)' ]; then rm -rf $(DIR_EXPORT)/*; fi

help:
@echo 'Usage examples:'
Expand Down
6 changes: 3 additions & 3 deletions apps-code/community-apps/Makefile.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# context version definition
VERSION := 6.10.0
RELEASE := 2
RELEASE := 3

# log
VERBOSE := 1
Expand All @@ -15,10 +15,10 @@ SERVICES := service_Lithops service_UERANSIM capone131 service_example
DIR_ONEAPPS := ../one-apps
DIR_BUILD := build
DIR_EXPORT := export
$(shell mkdir -p ${DIR_BUILD} ${DIR_EXPORT})
$(shell mkdir -p $(DIR_BUILD) $(DIR_EXPORT))

# don't delete exported
.SECONDARY: $(patsubst %,$(DIR_EXPORT)/%.qcow2,$(SERVICES))
.SECONDARY: $(SERVICES:%=$(DIR_EXPORT)/%.qcow2)

# logging func
INFO=sh -c 'if [ $(VERBOSE) = 1 ]; then echo [INFO] $$1; fi' INFO
Expand Down
1 change: 1 addition & 0 deletions apps-code/community-apps/packer/capone/common.pkr.hcl
1 change: 0 additions & 1 deletion apps-code/community-apps/packer/capone/plugins.pkr.hcl

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ source "qemu" "example" {
memory = 2048
accelerator = "kvm"

iso_url = "export/alma8.qcow2"
iso_url = "../one-apps/export/alma8.qcow2"
iso_checksum = "none"

headless = var.headless
Expand Down
2 changes: 1 addition & 1 deletion apps-code/one-apps
Submodule one-apps updated 181 files

0 comments on commit e753ef9

Please sign in to comment.