From 97d4b3ffc2a9a6cf408df98f2b29ca17dd5e9087 Mon Sep 17 00:00:00 2001 From: "push-app-to-main[bot]" <203845782+push-app-to-main[bot]@users.noreply.github.com> Date: Mon, 23 Feb 2026 22:41:29 +0100 Subject: [PATCH] SeaweedFS (#12220) * Add seaweedfs (ct) * Update seaweedfs.sh * Add var_fuse variable with default value 'yes' * Formatting * Update seaweedfs-install.sh --------- Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: CanbiZ (MickLesk) <47820557+MickLesk@users.noreply.github.com> Co-authored-by: tremor021 Co-authored-by: Tobias <96661824+CrazyWolf13@users.noreply.github.com> --- ct/seaweedfs.sh | 55 +++++++++++++++++++++++++++++ frontend/public/json/seaweedfs.json | 48 +++++++++++++++++++++++++ install/seaweedfs-install.sh | 50 ++++++++++++++++++++++++++ 3 files changed, 153 insertions(+) create mode 100644 ct/seaweedfs.sh create mode 100644 frontend/public/json/seaweedfs.json create mode 100644 install/seaweedfs-install.sh diff --git a/ct/seaweedfs.sh b/ct/seaweedfs.sh new file mode 100644 index 000000000..e7bf97a4a --- /dev/null +++ b/ct/seaweedfs.sh @@ -0,0 +1,55 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func) +# Copyright (c) 2021-2026 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/seaweedfs/seaweedfs + +APP="SeaweedFS" +var_tags="${var_tags:-storage;s3;filesystem}" +var_cpu="${var_cpu:-2}" +var_ram="${var_ram:-2048}" +var_disk="${var_disk:-16}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" +var_fuse="${var_fuse:-yes}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + + if [[ ! -f /opt/seaweedfs/weed ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + + if check_for_gh_release "seaweedfs" "seaweedfs/seaweedfs"; then + msg_info "Stopping Service" + systemctl stop seaweedfs + msg_ok "Stopped Service" + + fetch_and_deploy_gh_release "seaweedfs" "seaweedfs/seaweedfs" "prebuild" "latest" "/opt/seaweedfs" "linux_amd64.tar.gz" + + msg_info "Starting Service" + systemctl start seaweedfs + 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 "${TAB}${GATEWAY}${BGN}http://${IP}:9333${CL}" diff --git a/frontend/public/json/seaweedfs.json b/frontend/public/json/seaweedfs.json new file mode 100644 index 000000000..97d83b1a5 --- /dev/null +++ b/frontend/public/json/seaweedfs.json @@ -0,0 +1,48 @@ +{ + "name": "SeaweedFS", + "slug": "seaweedfs", + "categories": [ + 11 + ], + "date_created": "2026-02-22", + "type": "ct", + "updateable": true, + "privileged": false, + "interface_port": 9333, + "documentation": "https://github.com/seaweedfs/seaweedfs/wiki", + "website": "https://seaweedfs.com/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons@main/webp/seaweedfs.webp", + "config_path": "", + "description": "SeaweedFS is a fast distributed storage system for blobs, objects, files, and data lakes, with O(1) disk seek, S3 API, FUSE mount, WebDAV, and cloud tiering support.", + "install_methods": [ + { + "type": "default", + "script": "ct/seaweedfs.sh", + "resources": { + "cpu": 2, + "ram": 2048, + "hdd": 16, + "os": "Debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [ + { + "text": "Master UI available at port 9333, Filer UI at port 8888, S3 API at port 8333.", + "type": "info" + }, + { + "text": "Data is stored in /opt/seaweedfs-data.", + "type": "info" + }, + { + "text": "FUSE mounting requires fuse3 (pre-installed).", + "type": "info" + } + ] +} diff --git a/install/seaweedfs-install.sh b/install/seaweedfs-install.sh new file mode 100644 index 000000000..6d4aec60b --- /dev/null +++ b/install/seaweedfs-install.sh @@ -0,0 +1,50 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2026 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE +# Source: https://github.com/seaweedfs/seaweedfs + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +msg_info "Installing Dependencies" +$STD apt install -y fuse3 +msg_ok "Installed Dependencies" + +fetch_and_deploy_gh_release "seaweedfs" "seaweedfs/seaweedfs" "prebuild" "latest" "/opt/seaweedfs" "linux_amd64.tar.gz" + +msg_info "Setting up SeaweedFS" +mkdir -p /opt/seaweedfs-data +ln -sf /opt/seaweedfs/weed /usr/local/bin/weed +msg_ok "Set up SeaweedFS" + +msg_info "Creating Service" +cat </etc/systemd/system/seaweedfs.service +[Unit] +Description=SeaweedFS Server +After=network.target + +[Service] +Type=simple +User=root +WorkingDirectory=/opt/seaweedfs +ExecStart=/opt/seaweedfs/weed server -dir=/opt/seaweedfs-data -master.port=9333 -volume.port=8080 -filer -s3 +Restart=on-failure +RestartSec=5 +LimitNOFILE=65536 + +[Install] +WantedBy=multi-user.target +EOF +systemctl enable -q --now seaweedfs +msg_ok "Created Service" + +motd_ssh +customize +cleanup_lxc