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.
This commit is contained in:
parent
e2da55ae77
commit
9a08c87ead
|
@ -112,19 +112,6 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- redis_data:/data
|
- 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:
|
volumes:
|
||||||
couchdb3_data:
|
couchdb3_data:
|
||||||
driver: local
|
driver: local
|
||||||
|
|
|
@ -4,12 +4,10 @@
|
||||||
Layout,
|
Layout,
|
||||||
Heading,
|
Heading,
|
||||||
Body,
|
Body,
|
||||||
Button,
|
|
||||||
Divider,
|
Divider,
|
||||||
notifications,
|
notifications,
|
||||||
Label,
|
Label,
|
||||||
Modal,
|
Link,
|
||||||
ModalContent,
|
|
||||||
} from "@budibase/bbui"
|
} from "@budibase/bbui"
|
||||||
import { API } from "api"
|
import { API } from "api"
|
||||||
import { auth, admin } from "stores/portal"
|
import { auth, admin } from "stores/portal"
|
||||||
|
@ -21,8 +19,6 @@
|
||||||
let githubVersion
|
let githubVersion
|
||||||
let githubPublishedDate
|
let githubPublishedDate
|
||||||
let githubPublishedTime
|
let githubPublishedTime
|
||||||
let needsUpdate = true
|
|
||||||
let updateModal
|
|
||||||
|
|
||||||
// Only admins allowed here
|
// 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() {
|
async function getVersion() {
|
||||||
try {
|
try {
|
||||||
version = await API.getBudibaseVersion()
|
version = await API.getBudibaseVersion()
|
||||||
|
@ -69,13 +50,6 @@
|
||||||
githubPublishedDate = new Date(githubResponse.published_at)
|
githubPublishedDate = new Date(githubResponse.published_at)
|
||||||
githubPublishedTime = githubPublishedDate.toLocaleTimeString()
|
githubPublishedTime = githubPublishedDate.toLocaleTimeString()
|
||||||
githubPublishedDate = githubPublishedDate.toLocaleDateString()
|
githubPublishedDate = githubPublishedDate.toLocaleDateString()
|
||||||
|
|
||||||
//Does Budibase need to be updated?
|
|
||||||
if (githubVersion === version) {
|
|
||||||
needsUpdate = false
|
|
||||||
} else {
|
|
||||||
needsUpdate = true
|
|
||||||
}
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
notifications.error("Error getting the latest Budibase version")
|
notifications.error("Error getting the latest Budibase version")
|
||||||
githubVersion = null
|
githubVersion = null
|
||||||
|
@ -115,23 +89,15 @@
|
||||||
>
|
>
|
||||||
</Layout>
|
</Layout>
|
||||||
<Divider />
|
<Divider />
|
||||||
<div>
|
<Layout noPadding gap="XS">
|
||||||
<Button cta on:click={updateModal.show} disabled={!needsUpdate}
|
<Heading>Updating Budibase</Heading>
|
||||||
>Update Budibase</Button
|
<Body
|
||||||
|
>To update your self-host installation, follow the docs found <Link
|
||||||
|
size="L"
|
||||||
|
href="https://docs.budibase.com/docs/updating-budibase">here.</Link
|
||||||
|
></Body
|
||||||
>
|
>
|
||||||
<Modal bind:this={updateModal}>
|
</Layout>
|
||||||
<ModalContent
|
|
||||||
title="Update Budibase"
|
|
||||||
confirmText="Update"
|
|
||||||
onConfirm={updateBudibase}
|
|
||||||
>
|
|
||||||
<span
|
|
||||||
>Are you sure you want to update your budibase installation to the
|
|
||||||
latest version?</span
|
|
||||||
>
|
|
||||||
</ModalContent>
|
|
||||||
</Modal>
|
|
||||||
</div>
|
|
||||||
{/if}
|
{/if}
|
||||||
</Layout>
|
</Layout>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in New Issue