From 9a08c87eadd49f4b912b5ad4ed0320c1206a900b Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Wed, 6 Nov 2024 16:03:15 +0000 Subject: [PATCH] For a while we have had issues with the watchtower update process, removing this and recommending self-hosters go to the documentation to correctly update their install. --- hosting/docker-compose.yaml | 13 ----- .../builder/portal/settings/version.svelte | 52 ++++--------------- 2 files changed, 9 insertions(+), 56 deletions(-) diff --git a/hosting/docker-compose.yaml b/hosting/docker-compose.yaml index c7a22eb2b3..214fc33c30 100644 --- a/hosting/docker-compose.yaml +++ b/hosting/docker-compose.yaml @@ -112,19 +112,6 @@ services: volumes: - redis_data:/data - watchtower-service: - restart: always - image: containrrr/watchtower - volumes: - - /var/run/docker.sock:/var/run/docker.sock - command: --debug --http-api-update bbapps bbworker bbproxy - environment: - - WATCHTOWER_HTTP_API=true - - WATCHTOWER_HTTP_API_TOKEN=budibase - - WATCHTOWER_CLEANUP=true - labels: - - "com.centurylinklabs.watchtower.enable=false" - volumes: couchdb3_data: driver: local diff --git a/packages/builder/src/pages/builder/portal/settings/version.svelte b/packages/builder/src/pages/builder/portal/settings/version.svelte index c3898b7861..032c077557 100644 --- a/packages/builder/src/pages/builder/portal/settings/version.svelte +++ b/packages/builder/src/pages/builder/portal/settings/version.svelte @@ -4,12 +4,10 @@ Layout, Heading, Body, - Button, Divider, notifications, Label, - Modal, - ModalContent, + Link, } from "@budibase/bbui" import { API } from "api" import { auth, admin } from "stores/portal" @@ -21,8 +19,6 @@ let githubVersion let githubPublishedDate let githubPublishedTime - let needsUpdate = true - let updateModal // Only admins allowed here $: { @@ -31,21 +27,6 @@ } } - async function updateBudibase() { - try { - notifications.info("Updating budibase..") - await fetch("/v1/update", { - headers: { - Authorization: "Bearer budibase", - }, - }) - notifications.success("Your budibase installation is up to date.") - getVersion() - } catch (err) { - notifications.error(`Error installing budibase update ${err}`) - } - } - async function getVersion() { try { version = await API.getBudibaseVersion() @@ -69,13 +50,6 @@ githubPublishedDate = new Date(githubResponse.published_at) githubPublishedTime = githubPublishedDate.toLocaleTimeString() githubPublishedDate = githubPublishedDate.toLocaleDateString() - - //Does Budibase need to be updated? - if (githubVersion === version) { - needsUpdate = false - } else { - needsUpdate = true - } } catch (error) { notifications.error("Error getting the latest Budibase version") githubVersion = null @@ -115,23 +89,15 @@ > -
- + Updating Budibase + To update your self-host installation, follow the docs found here. - - - Are you sure you want to update your budibase installation to the - latest version? - - -
+ {/if} {/if}