From f4913422fb81f5b1368851392c4d8d0af3c5f48e Mon Sep 17 00:00:00 2001 From: librelad Date: Sun, 5 Jul 2026 20:25:21 +0100 Subject: [PATCH] refactor(catalog): rename the 'marketplace' app to 'libreportal_catalog' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 'Marketplace' read as a place to buy things; this is a free, self-hosted app catalog, so rename the app to LibrePortal Catalog. Slug is libreportal_catalog (underscore — the slug becomes a CFG__ prefix and a bash identifier via declare "${app_name}=i"; a dash would break install). Docker-facing names use dashes (libreportal-catalog-service / hostname libreportal-catalog), declared explicitly in the PORT config + compose, not derived from the slug. - containers/marketplace/ -> containers/libreportal_catalog/ (+ .config, .svg, hook file) - CFG_MARKETPLACE_* -> CFG_LIBREPORTAL_CATALOG_*, APP_NAME + TITLE + PORT_1 updated - install hook fn marketplace_install_post_setup -> libreportal_catalog_install_post_setup - served browse site reworded Marketplace -> Catalog, icon refs updated - regenerated function_manifest.sh (autoload stub now points at the new file) Not installed yet, so there is no live config/container/volume to migrate — the cheapest moment to rename. The client-side registry ('View full page on the marketplace') wording is a separate subsystem and left unchanged for now. Signed-off-by: librelad Co-Authored-By: Claude Opus 4.8 (1M context) --- .../docker-compose.yml | 18 +++++----- .../libreportal_catalog.config} | 36 +++++++++---------- .../libreportal_catalog.svg} | 0 .../nginx.conf | 0 .../resources/site/index.html | 20 +++++------ .../libreportal_catalog_install_hooks.sh} | 8 ++--- .../source/files/arrays/function_manifest.sh | 6 ++-- 7 files changed, 44 insertions(+), 44 deletions(-) rename containers/{marketplace => libreportal_catalog}/docker-compose.yml (58%) rename containers/{marketplace/marketplace.config => libreportal_catalog/libreportal_catalog.config} (70%) rename containers/{marketplace/marketplace.svg => libreportal_catalog/libreportal_catalog.svg} (100%) rename containers/{marketplace => libreportal_catalog}/nginx.conf (100%) rename containers/{marketplace => libreportal_catalog}/resources/site/index.html (96%) rename containers/{marketplace/scripts/marketplace_install_hooks.sh => libreportal_catalog/scripts/libreportal_catalog_install_hooks.sh} (81%) diff --git a/containers/marketplace/docker-compose.yml b/containers/libreportal_catalog/docker-compose.yml similarity index 58% rename from containers/marketplace/docker-compose.yml rename to containers/libreportal_catalog/docker-compose.yml index e1b7a1e..7fd7002 100644 --- a/containers/marketplace/docker-compose.yml +++ b/containers/libreportal_catalog/docker-compose.yml @@ -3,11 +3,11 @@ networks: external: true services: - marketplace-service: #LIBREPORTAL|SERVICE_TAG_1|marketplace-service - container_name: marketplace-service + libreportal-catalog-service: #LIBREPORTAL|SERVICE_TAG_1|libreportal-catalog-service + container_name: libreportal-catalog-service image: nginx:alpine restart: unless-stopped - hostname: marketplace + hostname: libreportal-catalog # GLUETUN_OFF_BEGIN ports: - "PORTS_DATA_1" #LIBREPORTAL|PORTS_TAG_1|PORTS_DATA_1 @@ -18,12 +18,12 @@ services: libreportal.backup.files: "data" traefik.enable: TRAEFIK_ENABLE_DATA #LIBREPORTAL|TRAEFIK_ENABLE_TAG|TRAEFIK_ENABLE_DATA # TRAEFIK_PORT_1_BEGIN - traefik.http.routers.marketplace-service.entrypoints: web,websecure - traefik.http.routers.marketplace-service.rule: Host(`DOMAINSUBNAME_DATA_1`) #LIBREPORTAL|DOMAINSUBNAME_TAG_1|DOMAINSUBNAME_DATA_1 - traefik.http.routers.marketplace-service.tls: true - traefik.http.routers.marketplace-service.tls.certresolver: production - traefik.http.services.marketplace-service.loadbalancer.server.port: PORT_INTERNAL_DATA_1 #LIBREPORTAL|PORT_INTERNAL_TAG_1|PORT_INTERNAL_DATA_1 - traefik.http.routers.marketplace-service.middlewares: MIDDLEWARE_DATA_1 #LIBREPORTAL|MIDDLEWARE_TAG_1|MIDDLEWARE_DATA_1 + traefik.http.routers.libreportal-catalog-service.entrypoints: web,websecure + traefik.http.routers.libreportal-catalog-service.rule: Host(`DOMAINSUBNAME_DATA_1`) #LIBREPORTAL|DOMAINSUBNAME_TAG_1|DOMAINSUBNAME_DATA_1 + traefik.http.routers.libreportal-catalog-service.tls: true + traefik.http.routers.libreportal-catalog-service.tls.certresolver: production + traefik.http.services.libreportal-catalog-service.loadbalancer.server.port: PORT_INTERNAL_DATA_1 #LIBREPORTAL|PORT_INTERNAL_TAG_1|PORT_INTERNAL_DATA_1 + traefik.http.routers.libreportal-catalog-service.middlewares: MIDDLEWARE_DATA_1 #LIBREPORTAL|MIDDLEWARE_TAG_1|MIDDLEWARE_DATA_1 # TRAEFIK_PORT_1_END healthcheck: disable: HEALTHCHECK_DATA #LIBREPORTAL|HEALTHCHECK_TAG|HEALTHCHECK_DATA diff --git a/containers/marketplace/marketplace.config b/containers/libreportal_catalog/libreportal_catalog.config similarity index 70% rename from containers/marketplace/marketplace.config rename to containers/libreportal_catalog/libreportal_catalog.config index 8c87c0f..3afaafb 100644 --- a/containers/marketplace/marketplace.config +++ b/containers/libreportal_catalog/libreportal_catalog.config @@ -10,14 +10,14 @@ # HEADSCALE = options : false, local, remote (see general config). e.g false or local,remote # DEV_ONLY = if true, hidden from the App Center unless Developer Mode is on # -CFG_MARKETPLACE_APP_NAME=marketplace -CFG_MARKETPLACE_BACKUP=true -CFG_MARKETPLACE_BACKUP_STRATEGY=auto -CFG_MARKETPLACE_COMPOSE_FILE=default -CFG_MARKETPLACE_HEALTHCHECK=false -CFG_MARKETPLACE_AUTHELIA=false -CFG_MARKETPLACE_HEADSCALE=false -CFG_MARKETPLACE_DEV_ONLY=true +CFG_LIBREPORTAL_CATALOG_APP_NAME=libreportal_catalog +CFG_LIBREPORTAL_CATALOG_BACKUP=true +CFG_LIBREPORTAL_CATALOG_BACKUP_STRATEGY=auto +CFG_LIBREPORTAL_CATALOG_COMPOSE_FILE=default +CFG_LIBREPORTAL_CATALOG_HEALTHCHECK=false +CFG_LIBREPORTAL_CATALOG_AUTHELIA=false +CFG_LIBREPORTAL_CATALOG_HEADSCALE=false +CFG_LIBREPORTAL_CATALOG_DEV_ONLY=true # # ============================================================================= # METADATA @@ -29,12 +29,12 @@ CFG_MARKETPLACE_DEV_ONLY=true # URL = source repository or documentation URL # ACTIONS = available actions for this application # -CFG_MARKETPLACE_CATEGORY="system" -CFG_MARKETPLACE_TITLE="LibrePortal Marketplace" -CFG_MARKETPLACE_DESCRIPTION="App Catalog & Registry" -CFG_MARKETPLACE_LONG_DESCRIPTION="Host your own signed LibrePortal app catalog — browse and add apps from your own instance." -CFG_MARKETPLACE_URL="https://github.com/Webstar/LibrePortal" -CFG_MARKETPLACE_ACTIONS="configure|install|restart|shutdown|uninstall" +CFG_LIBREPORTAL_CATALOG_CATEGORY="system" +CFG_LIBREPORTAL_CATALOG_TITLE="LibrePortal Catalog" +CFG_LIBREPORTAL_CATALOG_DESCRIPTION="App Catalog & Registry" +CFG_LIBREPORTAL_CATALOG_LONG_DESCRIPTION="Host your own signed LibrePortal app catalog — browse and add apps from your own instance." +CFG_LIBREPORTAL_CATALOG_URL="https://github.com/Webstar/LibrePortal" +CFG_LIBREPORTAL_CATALOG_ACTIONS="configure|install|restart|shutdown|uninstall" # # ============================================================================= # NETWORK CONFIGURATION @@ -42,9 +42,9 @@ CFG_MARKETPLACE_ACTIONS="configure|install|restart|shutdown|uninstall" # DOMAIN = number of domain from the general config, useful when using multiple domains # WHITELIST = if true only allow whitelisted ips on traefik, if false allow all # -CFG_MARKETPLACE_DOMAIN=1 -CFG_MARKETPLACE_WHITELIST=false -CFG_MARKETPLACE_NETWORK=default +CFG_LIBREPORTAL_CATALOG_DOMAIN=1 +CFG_LIBREPORTAL_CATALOG_WHITELIST=false +CFG_LIBREPORTAL_CATALOG_NETWORK=default # # ============================================================================= # PORT CONFIGURATION @@ -60,4 +60,4 @@ CFG_MARKETPLACE_NETWORK=default # - webui: if true, this port serves the main web interface # - description: human-readable description of the service # -CFG_MARKETPLACE_PORT_1="marketplace-service|webui|random:80|public|tcp|false|true|true|Marketplace|/|marketplace" +CFG_LIBREPORTAL_CATALOG_PORT_1="libreportal-catalog-service|webui|random:80|public|tcp|false|true|true|Catalog|/|libreportal-catalog" diff --git a/containers/marketplace/marketplace.svg b/containers/libreportal_catalog/libreportal_catalog.svg similarity index 100% rename from containers/marketplace/marketplace.svg rename to containers/libreportal_catalog/libreportal_catalog.svg diff --git a/containers/marketplace/nginx.conf b/containers/libreportal_catalog/nginx.conf similarity index 100% rename from containers/marketplace/nginx.conf rename to containers/libreportal_catalog/nginx.conf diff --git a/containers/marketplace/resources/site/index.html b/containers/libreportal_catalog/resources/site/index.html similarity index 96% rename from containers/marketplace/resources/site/index.html rename to containers/libreportal_catalog/resources/site/index.html index c5e0c26..28f9b3d 100644 --- a/containers/marketplace/resources/site/index.html +++ b/containers/libreportal_catalog/resources/site/index.html @@ -3,11 +3,11 @@ -LibrePortal Marketplace - +LibrePortal Catalog +