From 585a0e17bb1006219b3e369a618d21157dce8ebe Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Tue, 25 Nov 2025 09:33:52 +0100 Subject: [PATCH] add qdrant --- ct/qdrant.sh | 45 ++++++++++++++++++++++ frontend/public/json/qdrant.json | 35 +++++++++++++++++ install/qdrant-install.sh | 64 ++++++++++++++++++++++++++++++++ 3 files changed, 144 insertions(+) create mode 100644 ct/qdrant.sh create mode 100644 frontend/public/json/qdrant.json create mode 100644 install/qdrant-install.sh diff --git a/ct/qdrant.sh b/ct/qdrant.sh new file mode 100644 index 000000000..dc8852c7b --- /dev/null +++ b/ct/qdrant.sh @@ -0,0 +1,45 @@ +#!/usr/bin/env bash +source <(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/build.func) +# Copyright (c) 2021-2025 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE +# Source: https://github.com/qdrant/qdrant + +APP="Qdrant" +var_tags="${var_tags:-}" +var_cpu="${var_cpu:-4}" +var_ram="${var_ram:-8192}" +var_disk="${var_disk:-20}" +var_os="${var_os:-debian}" +var_version="${var_version:-13}" +var_unprivileged="${var_unprivileged:-1}" + +header_info "$APP" +variables +color +catch_errors + +function update_script() { + header_info + check_container_storage + check_container_resources + if [[ ! -d /var/lib/qdrant ]]; then + msg_error "No ${APP} Installation Found!" + exit + fi + if check_for_gh_release "qdrant" "qdrant/qdrant"; then + fetch_and_deploy_gh_release "qdrant" "qdrant/qdrant" "binary" "latest" "/usr/bin/qdrant" + chown -R root:root /var/lib/qdrant + chmod -R 755 /var/lib/qdrant + 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}:6333${CL}" diff --git a/frontend/public/json/qdrant.json b/frontend/public/json/qdrant.json new file mode 100644 index 000000000..01e5d558c --- /dev/null +++ b/frontend/public/json/qdrant.json @@ -0,0 +1,35 @@ +{ + "name": "Qdrant", + "slug": "qdrant", + "categories": [ + 20 + ], + "date_created": "2025-11-25", + "type": "ct", + "updateable": false, + "privileged": false, + "config_path": "/etc/qdrant/config.yaml", + "interface_port": 6333, + "documentation": "https://github.com/qdrant/qdrant", + "website": "https://qdrant.tech/", + "logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/qdrant.webp", + "description": "Qdrant is a vector search engine and vector database that allows you to store, search, and manage high-dimensional vectors efficiently.", + "install_methods": [ + { + "type": "default", + "script": "ct/qdrant.sh", + "resources": { + "cpu": 1, + "ram": 1024, + "hdd": 5, + "os": "debian", + "version": "13" + } + } + ], + "default_credentials": { + "username": null, + "password": null + }, + "notes": [] +} diff --git a/install/qdrant-install.sh b/install/qdrant-install.sh new file mode 100644 index 000000000..4d6ed15f1 --- /dev/null +++ b/install/qdrant-install.sh @@ -0,0 +1,64 @@ +#!/usr/bin/env bash + +# Copyright (c) 2021-2025 community-scripts ORG +# Author: MickLesk (CanbiZ) +# License: MIT | https://github.com/community-scripts/ProxmoxVED/raw/main/LICENSE +# Source: https://github.com/qdrant/qdrant + +source /dev/stdin <<<"$FUNCTIONS_FILE_PATH" +color +verb_ip6 +catch_errors +setting_up_container +network_check +update_os + +fetch_and_deploy_gh_release "qdrant" "qdrant/qdrant" "binary" "latest" "/usr/bin/qdrant" + +msg_info "Creating Qdrant Configuration" +mkdir -p /var/lib/qdrant/storage +mkdir -p /var/lib/qdrant/snapshots +mkdir -p /etc/qdrant +chown -R root:root /var/lib/qdrant +chmod -R 755 /var/lib/qdrant + +cat >/etc/qdrant/config.yaml </etc/systemd/system/qdrant.service <