mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-11-22 16:41:59 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a2e7cbda86 | ||
|
|
8c7a645d0f |
No files matched your search
@@ -1,71 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
||||
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/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/bytechefhq/bytechef
|
||||
|
||||
APP="ByteChef"
|
||||
var_tags="${var_tags:-automation;workflow;integration}"
|
||||
var_cpu="${var_cpu:-4}"
|
||||
var_ram="${var_ram:-6144}"
|
||||
var_disk="${var_disk:-12}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
#var_arm64="${var_arm64:-no}" # unset = ask the user; set yes/no only when verified
|
||||
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 /opt/bytechef ]]; then
|
||||
msg_error "No ${APP} Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "bytechef" "bytechefhq/bytechef"; then
|
||||
msg_info "Stopping ByteChef"
|
||||
systemctl stop bytechef
|
||||
msg_ok "Stopped ByteChef"
|
||||
|
||||
JAVA_VERSION="25" setup_java
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
CLEAN_INSTALL=1 fetch_and_deploy_gh_release "bytechef" "bytechefhq/bytechef" "tarball"
|
||||
|
||||
msg_info "Building ByteChef (Patience)"
|
||||
mv /opt/bytechef /opt/bytechef-build
|
||||
cd /opt/bytechef-build/client
|
||||
$STD npm ci
|
||||
$STD npm run build
|
||||
cd /opt/bytechef-build
|
||||
$STD ./gradlew --no-daemon :server:apps:server-app:bootJar -Pprod
|
||||
mkdir -p /opt/bytechef/server
|
||||
mv /opt/bytechef-build/server/apps/server-app/build/libs/server-app-*.jar /opt/bytechef/server/server-app.jar
|
||||
mv /opt/bytechef-build/client/dist /opt/bytechef/client
|
||||
rm -rf /opt/bytechef-build ~/.gradle ~/.npm
|
||||
msg_ok "Built ByteChef"
|
||||
|
||||
msg_info "Starting ByteChef"
|
||||
systemctl start bytechef
|
||||
msg_ok "Started ByteChef"
|
||||
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 "${GATEWAY}${BGN}http://${IP}:8080${CL}"
|
||||
@@ -0,0 +1,65 @@
|
||||
#!/usr/bin/env bash
|
||||
_cs_boot="${COMMUNITY_SCRIPTS_CORE_DIR:-$(dirname "${BASH_SOURCE[0]}")/../../core}/core/build.func"
|
||||
source "$_cs_boot" 2>/dev/null || source <(curl -fsSL "${COMMUNITY_SCRIPTS_CORE_URL:-https://raw.githubusercontent.com/community-scripts/core/main}/core/build.func")
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: Tim Moore (angusmaul)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/TheWicklowWolf/Lidify
|
||||
|
||||
APP="Lidify"
|
||||
var_tags="${var_tags:-arr;music}"
|
||||
var_cpu="${var_cpu:-2}"
|
||||
var_ram="${var_ram:-1024}"
|
||||
var_disk="${var_disk:-8}"
|
||||
var_os="${var_os:-debian}"
|
||||
var_version="${var_version:-13}"
|
||||
var_arm64="${var_arm64:-yes}"
|
||||
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 /opt/lidify ]]; then
|
||||
msg_error "No Lidify Installation Found!"
|
||||
exit
|
||||
fi
|
||||
|
||||
if check_for_gh_release "lidify" "TheWicklowWolf/Lidify"; then
|
||||
msg_info "Stopping Lidify"
|
||||
systemctl stop lidify
|
||||
msg_ok "Stopped Lidify"
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
CLEAN_INSTALL=1 CLEAN_INSTALL_KEEP="config" fetch_and_deploy_gh_release "lidify" "TheWicklowWolf/Lidify" "tarball"
|
||||
|
||||
msg_info "Updating Lidify"
|
||||
$STD uv venv --python 3.12 /opt/lidify/.venv
|
||||
$STD uv pip install --python /opt/lidify/.venv/bin/python -r /opt/lidify/requirements.txt
|
||||
cat <<EOF >/opt/lidify/.env
|
||||
RELEASE_VERSION=$(cat ~/.lidify)
|
||||
EOF
|
||||
msg_ok "Updated Lidify"
|
||||
|
||||
msg_info "Starting Lidify"
|
||||
systemctl start lidify
|
||||
msg_ok "Started Lidify"
|
||||
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 "${GATEWAY}${BGN}http://${IP}:5000${CL}"
|
||||
@@ -1,79 +0,0 @@
|
||||
#!/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/bytechefhq/bytechef
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
JAVA_VERSION="25" setup_java
|
||||
NODE_VERSION="24" setup_nodejs
|
||||
PG_VERSION="16" setup_postgresql
|
||||
PG_DB_NAME="bytechef" PG_DB_USER="bytechef" setup_postgresql_db
|
||||
|
||||
fetch_and_deploy_gh_release "bytechef" "bytechefhq/bytechef" "tarball"
|
||||
|
||||
msg_info "Building ByteChef (Patience)"
|
||||
mv /opt/bytechef /opt/bytechef-build
|
||||
cd /opt/bytechef-build/client
|
||||
$STD npm ci
|
||||
$STD npm run build
|
||||
cd /opt/bytechef-build
|
||||
$STD ./gradlew --no-daemon :server:apps:server-app:bootJar -Pprod
|
||||
mkdir -p /opt/bytechef/server
|
||||
mv /opt/bytechef-build/server/apps/server-app/build/libs/server-app-*.jar /opt/bytechef/server/server-app.jar
|
||||
mv /opt/bytechef-build/client/dist /opt/bytechef/client
|
||||
rm -rf /opt/bytechef-build ~/.gradle ~/.npm
|
||||
msg_ok "Built ByteChef"
|
||||
|
||||
msg_info "Configuring ByteChef"
|
||||
mkdir -p /opt/bytechef_data/file-storage
|
||||
cat <<EOF >/opt/bytechef_data/.env
|
||||
BYTECHEF_DATASOURCE_URL=jdbc:postgresql://localhost:5432/bytechef
|
||||
BYTECHEF_DATASOURCE_USERNAME=bytechef
|
||||
BYTECHEF_DATASOURCE_PASSWORD=${PG_DB_PASS}
|
||||
BYTECHEF_PUBLIC_URL=http://${LOCAL_IP}:8080
|
||||
BYTECHEF_ANALYTICS_ENABLED=false
|
||||
BYTECHEF_ENCRYPTION_PROVIDER=property
|
||||
BYTECHEF_ENCRYPTION_PROPERTY_KEY=$(openssl rand -base64 32)
|
||||
BYTECHEF_SECURITY_REMEMBER_ME_KEY=$(openssl rand -base64 32)
|
||||
BYTECHEF_FILE_STORAGE_FILESYSTEM_BASEDIR=/opt/bytechef_data/file-storage
|
||||
LOGGING_LEVEL_ROOT=INFO
|
||||
LOGGING_LEVEL_COM_BYTECHEF=INFO
|
||||
EOF
|
||||
chmod 600 /opt/bytechef_data/.env
|
||||
msg_ok "Configured ByteChef"
|
||||
|
||||
msg_info "Creating Service"
|
||||
cat <<EOF >/etc/systemd/system/bytechef.service
|
||||
[Unit]
|
||||
Description=ByteChef
|
||||
After=network.target postgresql.service
|
||||
Requires=postgresql.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/bytechef
|
||||
EnvironmentFile=/opt/bytechef_data/.env
|
||||
ExecStart=/usr/bin/java -Dfile.encoding=UTF-8 -Duser.timezone=GMT -jar /opt/bytechef/server/server-app.jar
|
||||
SuccessExitStatus=143
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now bytechef
|
||||
msg_ok "Created Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Copyright (c) 2021-2026 community-scripts ORG
|
||||
# Author: Tim Moore (angusmaul)
|
||||
# License: MIT | https://github.com/community-scripts/ProxmoxVE/raw/main/LICENSE
|
||||
# Source: https://github.com/TheWicklowWolf/Lidify
|
||||
|
||||
source /dev/stdin <<<"$FUNCTIONS_FILE_PATH"
|
||||
color
|
||||
verb_ip6
|
||||
catch_errors
|
||||
setting_up_container
|
||||
network_check
|
||||
update_os
|
||||
|
||||
PYTHON_VERSION="3.12" setup_uv
|
||||
fetch_and_deploy_gh_release "lidify" "TheWicklowWolf/Lidify" "tarball"
|
||||
|
||||
msg_info "Setting up Lidify"
|
||||
$STD uv venv --python 3.12 /opt/lidify/.venv
|
||||
$STD uv pip install --python /opt/lidify/.venv/bin/python -r /opt/lidify/requirements.txt
|
||||
install -d -m 700 /opt/lidify/config
|
||||
cat <<EOF >/opt/lidify/.env
|
||||
RELEASE_VERSION=$(cat ~/.lidify)
|
||||
EOF
|
||||
msg_ok "Set up Lidify"
|
||||
|
||||
msg_info "Creating Lidify Service"
|
||||
cat <<EOF >/etc/systemd/system/lidify.service
|
||||
[Unit]
|
||||
Description=Lidify
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
WorkingDirectory=/opt/lidify
|
||||
EnvironmentFile=/opt/lidify/.env
|
||||
ExecStart=/opt/lidify/.venv/bin/gunicorn src.Lidify:app -c gunicorn_config.py
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
EOF
|
||||
systemctl enable -q --now lidify
|
||||
msg_ok "Created Lidify Service"
|
||||
|
||||
motd_ssh
|
||||
customize
|
||||
cleanup_lxc
|
||||
Reference in new issue
Block a user