From 9c3c26555e9abafcc41782c5afd4a0028eeedf59 Mon Sep 17 00:00:00 2001 From: "push-app-to-main[bot]" <203845782+push-app-to-main[bot]@users.noreply.github.com> Date: Fri, 11 Sep 2026 06:44:17 +0000 Subject: [PATCH] Add lemonade-server (ct) --- ct/headers/lemonade-server | 6 ++++ ct/lemonade-server.sh | 57 ++++++++++++++++++++++++++++++ install/lemonade-server-install.sh | 47 ++++++++++++++++++++++++ 3 files changed, 110 insertions(+) create mode 100644 ct/headers/lemonade-server create mode 100644 ct/lemonade-server.sh create mode 100644 install/lemonade-server-install.sh diff --git a/ct/headers/lemonade-server b/ct/headers/lemonade-server new file mode 100644 index 000000000..6c47603d7 --- /dev/null +++ b/ct/headers/lemonade-server @@ -0,0 +1,6 @@ + __ __ _____ + / / ___ ____ ___ ____ ____ ____ _____/ /__ / ___/___ ______ _____ _____ + / / / _ \/ __ `__ \/ __ \/ __ \/ __ `/ __ / _ \______\__ \/ _ \/ ___/ | / / _ \/ ___/ + / /___/ __/ / / / / / /_/ / / / / /_/ / /_/ / __/_____/__/ / __/ / | |/ / __/ / +/_____/\___/_/ /_/ /_/\____/_/ /_/\__,_/\__,_/\___/ /____/\___/_/ |___/\___/_/ + diff --git a/ct/lemonade-server.sh b/ct/lemonade-server.sh new file mode 100644 index 000000000..984e47e87 --- /dev/null +++ b/ct/lemonade-server.sh @@ -0,0 +1,57 @@ +#!/usr/bin/env bash +_CS_DEFAULT_URL="https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main" +_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func" +source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func") +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Jamie (jamiej) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/lemonade-sdk/lemonade + +APP="Lemonade-Server" +var_tags="${var_tags:-ai}" +var_cpu="${var_cpu:-4}" +var_ram="${var_ram:-8192}" +var_disk="${var_disk:-80}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified +var_unprivileged="${var_unprivileged:-1}" +var_gpu="${var_gpu:-yes}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if ! command -v lemonade &>/dev/null; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "lemonade-server" "lemonade-sdk/lemonade"; then + msg_info "Stopping Service" + systemctl stop lemond + msg_ok "Stopped Service" + + fetch_and_deploy_gh_release "lemonade-server" "lemonade-sdk/lemonade" "binary" "latest" "/tmp" "lemonade-server_*-debian13_$(arch_resolve).deb" + + msg_info "Starting Service" + systemctl start lemond + msg_ok "Started Service" + msg_ok "Updated successfully!" + fi + exit +} + +start +build_container +description + +msg_ok "Completed successfully!\n" +echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}" +echo -e "${INFO}${YW}Access it using the following URL:${CL}" +echo -e "${GATEWAY}${BGN}http://${IP}:13305${CL}" diff --git a/install/lemonade-server-install.sh b/install/lemonade-server-install.sh new file mode 100644 index 000000000..bc32df54b --- /dev/null +++ b/install/lemonade-server-install.sh @@ -0,0 +1,47 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: Jamie (jamiej) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/lemonade-sdk/lemonade + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +setup_deb822_repo \ + "backports" \ + "https://ftp-master.debian.org/keys/archive-key-13.asc" \ + "http://deb.debian.org/debian" \ + "trixie-backports" \ + "main" + +msg_info "Installing Lemonade Server dependencies" +$STD apt install -y \ + fonts-katex \ + libcpp-httplib0.41 \ + libmbedcrypto16 \ + libwebsockets19t64 +msg_ok "Installed Lemonade Server dependencies" + +setup_hwaccel + +fetch_and_deploy_gh_release "lemonade-server" "lemonade-sdk/lemonade" "binary" "latest" "/tmp" "lemonade-server_*-debian13_$(arch_resolve).deb" + +msg_info "Configuring Remote Access" +systemctl enable -q --now lemond +for _ in $(seq 1 60); do + lemonade status >/dev/null 2>&1 && break + sleep 2 +done +$STD lemonade config set host=0.0.0.0 +systemctl restart lemond +msg_ok "Configured Remote Access" + +motd_ssh +customize +cleanup_lxc