Skip to content

Commit 54b634c

Browse files
Qdrant (#9465)
* 'Add new script' * Update qdrant.sh * Update qdrant.json --------- Co-authored-by: push-app-to-main[bot] <203845782+push-app-to-main[bot]@users.noreply.github.com> Co-authored-by: CanbiZ <[email protected]>
1 parent d4e1b8f commit 54b634c

File tree

4 files changed

+150
-0
lines changed

4 files changed

+150
-0
lines changed

ct/headers/qdrant

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
____ __ __
2+
/ __ \____/ /________ _____ / /_
3+
/ / / / __ / ___/ __ `/ __ \/ __/
4+
/ /_/ / /_/ / / / /_/ / / / / /_
5+
\___\_\__,_/_/ \__,_/_/ /_/\__/
6+

ct/qdrant.sh

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
#!/usr/bin/env bash
2+
source <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/build.func)
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: MickLesk (CanbiZ)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/qdrant/qdrant
7+
8+
APP="Qdrant"
9+
var_tags="${var_tags:-database;vector}"
10+
var_cpu="${var_cpu:-1}"
11+
var_ram="${var_ram:-1024}"
12+
var_disk="${var_disk:-5}"
13+
var_os="${var_os:-debian}"
14+
var_version="${var_version:-13}"
15+
var_unprivileged="${var_unprivileged:-1}"
16+
17+
header_info "$APP"
18+
variables
19+
color
20+
catch_errors
21+
22+
function update_script() {
23+
header_info
24+
check_container_storage
25+
check_container_resources
26+
if [[ ! -d /var/lib/qdrant ]]; then
27+
msg_error "No ${APP} Installation Found!"
28+
exit
29+
fi
30+
if check_for_gh_release "qdrant" "qdrant/qdrant"; then
31+
fetch_and_deploy_gh_release "qdrant" "qdrant/qdrant" "binary" "latest" "/usr/bin/qdrant"
32+
chown -R root:root /var/lib/qdrant
33+
chmod -R 755 /var/lib/qdrant
34+
fi
35+
exit
36+
}
37+
38+
start
39+
build_container
40+
description
41+
42+
msg_ok "Completed Successfully!\n"
43+
echo -e "${CREATING}${GN}${APP} setup has been successfully initialized!${CL}"
44+
echo -e "${INFO}${YW} Access it using the following URL:${CL}"
45+
echo -e "${TAB}${GATEWAY}${BGN}http://${IP}:6333/dashboard${CL}"

frontend/public/json/qdrant.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"name": "Qdrant",
3+
"slug": "qdrant",
4+
"categories": [
5+
8
6+
],
7+
"date_created": "2025-11-26",
8+
"type": "ct",
9+
"updateable": true,
10+
"privileged": false,
11+
"config_path": "/etc/qdrant/config.yaml",
12+
"interface_port": 6333,
13+
"documentation": "https://github.com/qdrant/qdrant",
14+
"website": "https://qdrant.tech/",
15+
"logo": "https://cdn.jsdelivr.net/gh/selfhst/icons/webp/qdrant.webp",
16+
"description": "Qdrant is a vector search engine and vector database that allows you to store, search, and manage high-dimensional vectors efficiently.",
17+
"install_methods": [
18+
{
19+
"type": "default",
20+
"script": "ct/qdrant.sh",
21+
"resources": {
22+
"cpu": 1,
23+
"ram": 1024,
24+
"hdd": 5,
25+
"os": "debian",
26+
"version": "13"
27+
}
28+
}
29+
],
30+
"default_credentials": {
31+
"username": null,
32+
"password": null
33+
},
34+
"notes": []
35+
}

install/qdrant-install.sh

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
#!/usr/bin/env bash
2+
3+
# Copyright (c) 2021-2025 community-scripts ORG
4+
# Author: MickLesk (CanbiZ)
5+
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
6+
# Source: https://github.com/qdrant/qdrant
7+
8+
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
9+
color
10+
verb_ip6
11+
catch_errors
12+
setting_up_container
13+
network_check
14+
update_os
15+
16+
fetch_and_deploy_gh_release "qdrant" "qdrant/qdrant" "binary" "latest" "/usr/bin/qdrant"
17+
18+
msg_info "Creating Qdrant Configuration"
19+
mkdir -p /var/lib/qdrant/storage
20+
mkdir -p /var/lib/qdrant/snapshots
21+
mkdir -p /etc/qdrant
22+
chown -R root:root /var/lib/qdrant
23+
chmod -R 755 /var/lib/qdrant
24+
25+
cat >/etc/qdrant/config.yaml <<EOF
26+
log_level: INFO
27+
28+
storage:
29+
storage_path: /var/lib/qdrant/storage
30+
snapshots_path: /var/lib/qdrant/snapshots
31+
32+
service:
33+
host: 0.0.0.0
34+
http_port: 6333
35+
grpc_port: 6334
36+
enable_cors: true
37+
EOF
38+
msg_ok "Created Qdrant Configuration"
39+
40+
msg_info "Creating Qdrant Service"
41+
cat >/etc/systemd/system/qdrant.service <<EOF
42+
[Unit]
43+
Description=Qdrant Vector Search Engine
44+
After=network-online.target
45+
Wants=network-online.target
46+
47+
[Service]
48+
Type=simple
49+
ExecStart=/usr/bin/qdrant --config-path /etc/qdrant/config.yaml
50+
WorkingDirectory=/var/lib/qdrant
51+
Restart=on-failure
52+
RestartSec=5
53+
User=root
54+
LimitNOFILE=1048576
55+
56+
[Install]
57+
WantedBy=multi-user.target
58+
EOF
59+
systemctl enable -q --now qdrant
60+
msg_ok "Created Qdrant Service"
61+
62+
motd_ssh
63+
customize
64+
cleanup_lxc

0 commit comments

Comments
 (0)