Merge pull request #6 from BillyOutlast/lemonade

feat: add Lemonade LXC helper script
This commit is contained in:
BillyOutlast
2026-03-08 13:26:44 -04:00
committed by GitHub
4 changed files with 149 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
__ __
/ / ____ ________ ____ / /___ _______
/ / / __ \/ ___/ _ \/ __ \ / __/ / / / ___/
/ /___/ /_/ / /__/ __/ / / // /_/ /_/ / /
/_____/\____/\___/\___/_/ /_/ \__/\__,_/_/
+49
View File
@@ -0,0 +1,49 @@
#!/usr/bin/env bash
source <(curl -sSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/misc/build.func)
# Copyright (c) 2021-2026 community-scripts ORG
# Author: community-scripts
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
# Source: https://lemonade-server.ai
APP="Lemonade"
var_tags="${var_tags:-ai}"
var_cpu="${var_cpu:-2}"
var_ram="${var_ram:-4096}"
var_disk="${var_disk:-10}"
var_os="${var_os:-debian}"
var_version="${var_version:-13}"
var_gpu="${var_gpu:-yes}"
header_info "$APP"
variables
color
catch_errors
function update_script() {
header_info
check_container_storage
check_container_resources
if check_for_gh_release "lemonade" "lemonade-sdk/lemonade"; then
msg_info "Stopping Service"
systemctl stop lemonade-server
msg_ok "Stopped Service"
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "lemonade" "lemonade-sdk/lemonade" "binary"
msg_info "Starting Service"
systemctl start lemonade-server
msg_ok "Started Service"
exit
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 "${TAB}${GATEWAY}${BGN}http://${IP}:8000${CL}"
+56
View File
@@ -0,0 +1,56 @@
{
"name": "Lemonade",
"slug": "lemonade",
"categories": [
20
],
"date_created": "2026-03-06",
"type": "ct",
"updateable": true,
"privileged": false,
"interface_port": 8000,
"documentation": "https://lemonade-server.ai/docs/",
"config_path": "/etc/lemonade/lemonade.conf",
"website": "https://lemonade-server.ai/",
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/lemonade.webp",
"description": "Lemonade is a lightweight LLM inference server with OpenAI-compatible APIs, supporting multiple backends including CPU, Vulkan, and ROCm.",
"install_methods": [
{
"type": "default",
"script": "ct/lemonade.sh",
"resources": {
"cpu": 2,
"ram": 4096,
"hdd": 10,
"os": "Debian",
"version": "13"
}
}
],
"default_credentials": {
"username": null,
"password": null
},
"notes": [
{
"text": "Lemonade Server provides an OpenAI-compatible API for LLM inference.",
"type": "info"
},
{
"text": "Server listens on local IP by default - accessible from your network.",
"type": "info"
},
{
"text": "Configuration file: /etc/lemonade/lemonade.conf - customize host and port settings.",
"type": "info"
},
{
"text": "API keys are stored in /etc/lemonade/secrets.conf - add your API keys there and restart the service.",
"type": "info"
},
{
"text": "Supports CPU and Vulkan backends currently; ROCm support for AMD GPUs is planned.",
"type": "info"
}
]
}
+38
View File
@@ -0,0 +1,38 @@
#!/usr/bin/env bash
# Copyright (c) 2021-2026 community-scripts ORG
# Author: community-scripts
# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE
# Source: https://lemonade-server.ai
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
fetch_and_deploy_gh_release "lemonade" "lemonade-sdk/lemonade" "binary"
msg_info "Configuring Service"
sed -i -e "s/^#LEMONADE_HOST=.*/LEMONADE_HOST=${LOCAL_IP}/" \
-e "s/^#LEMONADE_PORT=.*/LEMONADE_PORT=8000/" \
/etc/lemonade/lemonade.conf
mkdir -p /etc/systemd/system/lemonade-server.service.d
cat > /etc/systemd/system/lemonade-server.service.d/override.conf << 'EOF'
[Service]
User=root
Group=root
ProtectHome=no
EOF
systemctl daemon-reload
msg_ok "Configured Service"
msg_info "Enabling Service"
systemctl enable -q --now lemonade-server
msg_ok "Enabled Service"
motd_ssh
customize
cleanup_lxc