From bcc815ecdad4e9e29b52bcd8b6b37db331bef4a3 Mon Sep 17 00:00:00 2001 From: "push-app-to-main[bot]" <203845782+push-app-to-main[bot]@users.noreply.github.com> Date: Sun, 22 Nov 2026 22:46:27 +0100 Subject: [PATCH] Bytechef (#18919) --- ct/bytechef.sh | 71 +++++++++++++++++++++++++++++++++ install/bytechef-install.sh | 79 +++++++++++++++++++++++++++++++++++++ 2 files changed, 150 insertions(+) create mode 100644 ct/bytechef.sh create mode 100644 install/bytechef-install.sh diff --git a/ct/bytechef.sh b/ct/bytechef.sh new file mode 100644 index 000000000..3a46acecb --- /dev/null +++ b/ct/bytechef.sh @@ -0,0 +1,71 @@ +#!/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:-16}" +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 -Pkotlin.compiler.execution.strategy=in-process + 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 + 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}" diff --git a/install/bytechef-install.sh b/install/bytechef-install.sh new file mode 100644 index 000000000..022d372fd --- /dev/null +++ b/install/bytechef-install.sh @@ -0,0 +1,79 @@ +#!/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 -Pkotlin.compiler.execution.strategy=in-process +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 +msg_ok "Built ByteChef" + +msg_info "Configuring ByteChef" +mkdir -p /opt/bytechef_data/file-storage +cat </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 </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