Files
ProxmoxVE/install/flowiseai-install.sh
T

52 lines
1.2 KiB
Bash
Raw Normal View History

2024-03-13 04:24:42 -04:00
#!/usr/bin/env bash
# Copyright (c) 2021-2026 tteck
2024-03-13 04:24:42 -04:00
# Author: tteck (tteckster)
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
# Source: https://flowiseai.com/ | Github: https://github.com/FlowiseAI/Flowise
2024-03-13 04:24:42 -04:00
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
2024-03-13 04:24:42 -04:00
color
verb_ip6
catch_errors
setting_up_container
network_check
update_os
2026-05-20 15:51:14 +02:00
msg_info "Installing Dependencies"
$STD apt install -y build-essential python3-dev
msg_ok "Installed Dependencies"
NODE_VERSION="24" setup_nodejs
2024-03-13 04:24:42 -04:00
msg_info "Installing FlowiseAI (Patience)"
2026-05-20 15:53:29 +02:00
$STD npm install -g flowise \
2025-03-26 20:47:45 +01:00
@opentelemetry/exporter-trace-otlp-grpc \
@opentelemetry/exporter-trace-otlp-proto \
@opentelemetry/sdk-trace-node \
2026-05-20 15:53:29 +02:00
langchainhub
2024-03-13 06:57:42 -04:00
mkdir -p /opt/flowiseai
curl -fsSL "https://raw.githubusercontent.com/FlowiseAI/Flowise/main/packages/server/.env.example" -o "/opt/flowiseai/.env"
2024-03-13 04:24:42 -04:00
msg_ok "Installed FlowiseAI"
msg_info "Creating Service"
cat <<EOF >/etc/systemd/system/flowise.service
[Unit]
Description=FlowiseAI
After=network.target
[Service]
2024-03-13 06:57:42 -04:00
EnvironmentFile=/opt/flowiseai/.env
2026-05-09 23:44:04 +02:00
ExecStart=flowise start
2024-03-13 04:24:42 -04:00
Restart=always
[Install]
WantedBy=multi-user.target
EOF
2025-04-01 20:22:40 +02:00
systemctl enable -q --now flowise
2024-03-13 04:24:42 -04:00
msg_ok "Created Service"
motd_ssh
customize
cleanup_lxc