[ALL] First step in splitting containers pre-installed system

This commit is contained in:
j1nx 2023-12-12 14:03:35 +00:00
parent f435366d6a
commit e43faa65d6
5 changed files with 57 additions and 6 deletions

View File

@ -306,7 +306,7 @@ BR2_PACKAGE_HOSTNAME_SERVICE=y
BR2_PACKAGE_NCPAMIXER=y BR2_PACKAGE_NCPAMIXER=y
BR2_PACKAGE_OVOS_CONTAINERS=y BR2_PACKAGE_OVOS_CONTAINERS=y
BR2_PACKAGE_OVOS_CONTAINERS_ARCH="arm64" BR2_PACKAGE_OVOS_CONTAINERS_ARCH="arm64"
BR2_PACKAGE_OVOS_CONTAINERS_IMAGES="ovos-messagebus" BR2_PACKAGE_OVOS_CONTAINERS_GUI=y
BR2_PACKAGE_OVOS_SPLASH=y BR2_PACKAGE_OVOS_SPLASH=y
BR2_PACKAGE_RESPEAKER=y BR2_PACKAGE_RESPEAKER=y
BR2_PACKAGE_RPI_EEPROM=y BR2_PACKAGE_RPI_EEPROM=y

View File

@ -13,9 +13,41 @@ config BR2_PACKAGE_OVOS_CONTAINERS_ARCH
help help
Architecture for which we should be pull. Architecture for which we should be pull.
config BR2_PACKAGE_OVOS_CONTAINERS_IMAGES choice
string "Images" prompt "Containers to pre-install"
default BR2_PACKAGE_OVOS_CONTAINERS_HEADLESS
config BR2_PACKAGE_OVOS_CONTAINERS_HEADLESS
bool "Headless"
help help
Space separated list of images to pull. This install all minimal required containers
to run the OVOS framework headless.
Install: - ovos -messagebus
- ovos-phal
- ovos-phal-admin
- ovos-listener-dinkum
- ovos-audio
- ovos-core
- ovos-cli
config BR2_PACKAGE_OVOS_CONTAINERS_GUI
bool "Graphical User Interface"
help
This install all required containers
to run the OVOS framework with the QT5
Graphical User Interface enabled.
Install: - ovos -messagebus
- ovos-phal
- ovos-phal-admin
- ovos-listener-dinkum
- ovos-audio
- ovos-core
- ovos-cli
- ovos-gui-websocket
- ovos-gui-shell
endchoice
endif endif

View File

@ -10,8 +10,20 @@ OVOS_CONTAINERS_LICENSE_FILES = $(BR2_EXTERNAL_OPENVOICEOS_PATH)/../LICENSE
OVOS_CONTAINERS_SITE = $(BR2_EXTERNAL_OPENVOICEOS_PATH)/package/ovos-containers OVOS_CONTAINERS_SITE = $(BR2_EXTERNAL_OPENVOICEOS_PATH)/package/ovos-containers
OVOS_CONTAINERS_SITE_METHOD = local OVOS_CONTAINERS_SITE_METHOD = local
#OVOS_CONTAINERS_IMAGES = $(call qstrip, $(BR2_PACKAGE_OVOS_CONTAINERS)) OVOS_CONTAINERS_IMAGES = ovos-messagebus \
OVOS_CONTAINERS_IMAGES = ovos-messagebus ovos-phal ovos-phal-admin ovos-listener-dinkum ovos-audio ovos-core ovos-cli ovos-gui-websocket ovos-gui-shell ovos-phal \
ovos-phal-admin \
ovos-listener-dinkum \
ovos-audio \
ovos-core \
ovos-cli
ifeq ($(BR2_PACKAGE_OVOS_CONTAINERS_GUI),y)
OVOS_CONTAINERS_IMAGES += ovos-gui-websocket \
ovos-gui-shell
OVOS_CONTAINERS_INSTALL_GUI = YES
endif
define OVOS_CONTAINERS_BUILD_CMDS define OVOS_CONTAINERS_BUILD_CMDS
$(Q)mkdir -p $(@D)/images $(Q)mkdir -p $(@D)/images
@ -31,4 +43,11 @@ define OVOS_CONTAINERS_INSTALL_IMAGES_CMDS
rm -rf $(TARGET_DIR)/home/ovos/.local/share/containers/storage/libpod rm -rf $(TARGET_DIR)/home/ovos/.local/share/containers/storage/libpod
endef endef
define OVOS_CONTAINERS_INSTALL_GUI
$(INSTALL) -D -m 644 $(BR2_EXTERNAL_OPENVOICEOS_PATH)/package/ovos-containers/ovos_gui_websocket.container \
$(TARGET_DIR)/home/ovos/.config/containers/systemd/ovos_gui_websocket.container
$(INSTALL) -D -m 644 $(BR2_EXTERNAL_OPENVOICEOS_PATH)/package/ovos-containers/ovos_gui.container \
$(TARGET_DIR)/home/ovos/.config/containers/systemd/ovos_gui.container
endef
$(eval $(generic-package)) $(eval $(generic-package))