diff --git a/compose.yml b/compose.yml index 9e15bdc..99ed761 100644 --- a/compose.yml +++ b/compose.yml @@ -40,7 +40,7 @@ services: #- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect" #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true" #- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}" - - "coop-cloud.${STACK_NAME}.version=0.6.0+latest" + - "coop-cloud.${STACK_NAME}.version=1.0.0+latest" healthcheck: test: "wget -nv -t1 --spider 'http://localhost:3001/' || exit 1" interval: 30s diff --git a/release/1.0.0+latest b/release/1.0.0+latest new file mode 100644 index 0000000..a823425 --- /dev/null +++ b/release/1.0.0+latest @@ -0,0 +1,29 @@ +!!BREAKING CHANGE!! + +this version is using self-built docker image for uptime kuma to incorporate mariadb which is not officially supported yet. Performance with sqlite was really bad and uptime kuma became unusable at some point. Upgrading to this version requires manually exporting sqlite database and converting it to mariadb. Additionally there's been changes to the database structure between last published version in this so it's not enough to just export the tables, you actually need to add a bunch of fields. And importing groups and other tables is a big hassle, better stick to just `monitor`... + +Here's some python to help you with this. + +``` +#!/usr/bin/python3 + +og = open("original.sql", "r") +new = open("ported.sql", "w") + +for line in og: + newline = line + if line.startswith("INSERT INTO monitor VALUES"): + newarr = line[27:-3].split(",") + if len(newarr) == 77: + kafka_producer_ssl_and_topic = ["0", "0"] + arr = newarr[:66] + kafka_producer_ssl_and_topic + newarr[66:75] + ["'keyword'", "NULL", "NULL", "'2c'", "NULL", "0", "'{}'"] + newline = "INSERT INTO monitor VALUES(" + ",".join(arr) + ");\n" + else: + newline = "--" + line + else: + pass + new.writelines(newline) + +og.close() +new.close() +``` diff --git a/release/convertmonitor.py b/release/convertmonitor.py new file mode 100755 index 0000000..124cd28 --- /dev/null +++ b/release/convertmonitor.py @@ -0,0 +1,21 @@ +#!/usr/bin/python3 + +og = open("original.sql", "r") +new = open("ported.sql", "w") + +for line in og: + newline = line + if line.startswith("INSERT INTO monitor VALUES"): + newarr = line[27:-3].split(",") + if len(newarr) == 77: + kafka_producer_ssl_and_topic = ["0", "0"] + arr = newarr[:66] + kafka_producer_ssl_and_topic + newarr[66:75] + ["'keyword'", "NULL", "NULL", "'2c'", "NULL", "0", "'{}'"] + newline = "INSERT INTO monitor VALUES(" + ",".join(arr) + ");\n" + else: + newline = "--" + line + else: + pass + new.writelines(newline) + +og.close() +new.close()