Compare commits

..

39 Commits

Author SHA1 Message Date
jjsfunhouse c77c17608f Merge pull request 'chore(deps): update baserow/baserow docker tag to v2.3.3' (#13) from renovate/baserow-baserow-2.x into main
Reviewed-on: coop-cloud/baserow#13
2026-07-24 17:19:19 +00:00
hey 60a9a35e31 chore: publish 2.3.3+2.3.3 release 2026-07-24 13:16:02 -04:00
hey 065357a1f9 clean working tree 2026-07-24 13:03:30 -04:00
renovate-bot d8654ee02d chore(deps): update baserow/baserow docker tag to v2.3.3 2026-07-24 17:02:17 +00:00
hey 0b489b7797 new message 2026-07-24 12:57:36 -04:00
hey 2844bc06cb updated version 2026-07-24 12:56:46 -04:00
jjsfunhouse 19a867a6aa Merge pull request 'chore: Configure Renovate' (#10) from renovate/configure into main
Reviewed-on: coop-cloud/baserow#10
2026-07-24 16:37:02 +00:00
sixsmith 9c795ec4d2 Merge branch 'main' into renovate/configure 2026-07-24 16:02:55 +00:00
marlon 4e8b4de017 fix version label 2026-07-09 21:15:08 -04:00
marlon 3cece29758 increment backup script version 2026-07-09 20:36:22 -04:00
marlon 1b04cfa554 chore: publish 2.3.1+2.3.0 release 2026-07-09 20:31:58 -04:00
marlon ad43624925 chore: update image tags 2026-07-09 20:31:42 -04:00
marlon 8d8676bde7 chore: publish 2.3.0+2.2.2 release 2026-07-09 20:19:00 -04:00
marlon 630d08f506 safer backup/restore script 2026-07-01 19:32:40 -04:00
marlon b03cc94e5e chore: publish 2.0.2+2.2.2 release 2026-06-30 20:36:14 -04:00
marlon 9978d84d16 noop 2026-06-30 20:32:25 -04:00
marlon d5af00327f fix config name 2026-06-30 20:29:44 -04:00
marlon 679bcc4ce8 chore: publish 2.0.1+2.2.2 release 2026-06-30 18:21:22 -04:00
marlon 563641ac48 chore: update image tags 2026-06-30 17:32:46 -04:00
joe-irving aaa0711fa4 chore: publish 2.1.0+2.2.0 2026-04-09 15:46:14 +01:00
silk 30e84c7733 Merge branch 'license' into 'main'
Baserow with license fix

See merge request mir/coop-cloud-recipes/baserow!1
2026-03-24 18:47:15 +00:00
silk e9e606a33a Baserow with license fix 2026-03-24 18:47:15 +00:00
silk 6a0711aba7 Initial commit 2026-03-24 18:41:51 +00:00
renovate-bot a2d5028661 Add renovate.json 2026-03-10 17:34:10 +00:00
joe-irving 818ec9bc13 Merge pull request 'chore: publish 2.0.0+2.0.5 release' (#8) from v2.0.0 into main
Reviewed-on: coop-cloud/baserow#8
2026-01-05 08:19:04 +00:00
joe-irving af3d655c8f chore: publish 2.0.0+2.0.5 release 2026-01-04 09:09:02 +00:00
marlon 1936226bf5 chore: publish 1.3.0+1.35.3 release 2025-12-10 16:00:00 -05:00
marlon 0865766102 Merge pull request 'backup/restore and merge conflicts' (#7) from linnealovespie/baserow:backup into main
Reviewed-on: coop-cloud/baserow#7
2025-12-10 20:49:50 +00:00
linnealovespie 475484928f Merge remote-tracking branch 'cc/backups' into backup 2025-11-24 19:55:38 -08:00
marlon 3158926e7b chore: publish 1.2.2+1.35.3 release 2025-11-10 18:58:27 -05:00
marlon 8ae0634c82 restore test 2025-11-10 18:15:59 -05:00
marlon ca1e0ec1c3 add abra.sh 2025-11-10 16:43:37 -05:00
marlon 14b65c2ecd fix pg scripting vars 2025-11-10 16:40:14 -05:00
marlon c5994bd7e4 backups test 2025-11-10 16:22:33 -05:00
marlon 136ad45cfb rollback 2025-11-10 20:46:35 +00:00
marlon 26e98e915d rollback 2025-11-10 15:42:04 -05:00
marlon aa6b8472f5 rollback restart condition 2025-11-10 15:40:19 -05:00
marlon f19c498001 chore: publish 1.2.1+1.35.3 release 2025-11-10 12:01:15 -05:00
marlon db18e08971 change restart policy to unless-stopped 2025-11-10 11:58:37 -05:00
9 changed files with 60 additions and 83 deletions
-1
View File
@@ -28,5 +28,4 @@ LETS_ENCRYPT_ENV=production
SECRET_SECRET_KEY_VERSION=v1
SECRET_JWT_KEY_VERSION=v1
SECRET_DB_PASSWORD_VERSION=v1
+1 -1
View File
@@ -1 +1 @@
export PG_BACKUP_VERSION=v1
export PG_BACKUP_CONFIG_VERSION=v2
+33
View File
@@ -0,0 +1,33 @@
if [ "$1" == "pre-backup" ]; then
# Remove any existing db dump and then create a new one
rm -rf $DATA_DIR/postgres/postgres-backup
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD pg_dump -j 2 -h localhost -U baserow baserow --format=directory -f $DATA_DIR/postgres/postgres-backup
exit
fi
if [ "$1" == "post-backup" ]; then
# rm -rf $DATA_DIR/postgres/postgres-backup
exit
fi
if [ "$1" == "pre-restore" ]; then
pkill -STOP -f "webfrontend"
pkill -STOP -f "celery"
pkill -STOP -f "caddy"
# Disconnect any remaining idle sessions from the 'baserow' database
# This prevents "database is being accessed by other users" errors during pg_restore -c
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD psql -h localhost -U baserow -d postgres -c "SELECT pg_terminate_backend(pid) FROM pg_stat_activity WHERE datname = 'baserow' AND pid <> pg_backend_pid();"
exit
fi
if [ "$1" == "post-restore" ]; then
source /baserow/data/.pgpass
PGPASSWORD=$DATABASE_PASSWORD pg_restore -j 2 -h localhost -U baserow -d baserow -c $DATA_DIR/postgres/postgres-backup
pkill -CONT -f "webfrontend"
pkill -CONT -f "celery"
pkill -CONT -f "caddy"
exit
fi
+13 -47
View File
@@ -3,26 +3,18 @@ version: "3.8"
services:
app:
image: baserow/baserow:1.35.3
depends_on:
- db
image: baserow/baserow:2.3.3
networks:
- proxy
- internal
environment:
- BASEROW_PUBLIC_URL=https://${DOMAIN}
- SECRET_KEY_FILE=/run/secrets/secret_key
- BASEROW_JWT_SIGNING_KEY_FILE=/run/secrets/jwt_key
- BASEROW_CADDY_ADDRESSES=:80
- BASEROW_BUILDER_DOMAINS=${WILDCARD_DOMAIN}
- DATABASE_HOST=db
- DATABASE_NAME=postgres
- DATABASE_USER=postgres
- DATABASE_PASSWORD_FILE=/run/secrets/db_password
secrets:
- secret_key
- jwt_key
- db_password
deploy:
restart_policy:
condition: on-failure
@@ -38,7 +30,10 @@ services:
#- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "backupbot.backup=true"
- "backupbot.backup.path=/baserow/data"
- "coop-cloud.${STACK_NAME}.version=1.2.0+1.35.3"
- "backupbot.backup.pre-hook=/backup.sh pre-backup"
- "backupbot.backup.post-hook=/backup.sh post-backup"
- "backupbot.restore.post-hook=/backup.sh post-restore"
- "coop-cloud.${STACK_NAME}.version=2.3.3+2.3.3"
healthcheck:
test: ["CMD", "./baserow.sh", "backend-cmd", "backend-healthcheck"]
interval: 30s
@@ -47,43 +42,22 @@ services:
start_period: 1m
volumes:
- baserow_data:/baserow/data
db:
image: postgres:15
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD_FILE=/run/secrets/db_password
- POSTGRES_DB=postgres
networks:
internal:
deploy:
restart_policy:
condition: on-failure
labels:
backupbot.backup.pre-hook: "/pg_backup.sh backup"
backupbot.backup.volumes.postgres.path: "backup.sql"
backupbot.restore.post-hook: '/pg_backup.sh restore'
configs:
- source: pg_backup
target: /pg_backup.sh
mode: 0555
secrets:
- db_password
healthcheck:
test: ["CMD-SHELL", "pg_isready", "-U", "postgres"]
interval: 30s
timeout: 10s
retries: 10
- source: backup-postgres
target: /backup.sh
mode: 0777
volumes:
baserow_data:
postgres_data:
configs:
backup-postgres:
name: ${STACK_NAME}_backup-postgres_${PG_BACKUP_CONFIG_VERSION}
file: ./backup-postgres.sh
networks:
proxy:
external: true
internal:
secrets:
secret_key:
@@ -92,11 +66,3 @@ secrets:
jwt_key:
external: true
name: ${STACK_NAME}_jwt_key_${SECRET_JWT_KEY_VERSION}
db_password:
external: true
name: ${STACK_NAME}_db_password_${SECRET_DB_PASSWORD_VERSION}
configs:
pg_backup:
name: ${STACK_NAME}_pg_backup_${PG_BACKUP_VERSION}
file: pg_backup.sh
-34
View File
@@ -1,34 +0,0 @@
#!/bin/bash
set -e
BACKUP_FILE='/var/lib/postgresql/data/backup.sql'
function backup {
export PGPASSWORD=$(cat /run/secrets/db_password)
pg_dump -U ${POSTGRES_USER} ${POSTGRES_DB} > $BACKUP_FILE
}
function restore {
cd /var/lib/postgresql/data/
restore_config(){
# Restore allowed connections
cat pg_hba.conf.bak > pg_hba.conf
su postgres -c 'pg_ctl reload'
}
# Don't allow any other connections than local
cp pg_hba.conf pg_hba.conf.bak
echo "local all all trust" > pg_hba.conf
su postgres -c 'pg_ctl reload'
trap restore_config EXIT INT TERM
# Recreate Database
psql -U ${POSTGRES_USER} -d postgres -c "DROP DATABASE ${POSTGRES_DB} WITH (FORCE);"
createdb -U ${POSTGRES_USER} ${POSTGRES_DB}
psql -U ${POSTGRES_USER} -d ${POSTGRES_DB} -1 -f $BACKUP_FILE
trap - EXIT INT TERM
restore_config
}
$@
+1
View File
@@ -0,0 +1 @@
Backup/restore of the postgres database backend will now use pg_dump and pg_restore
+3
View File
@@ -0,0 +1,3 @@
= 1 Breaking Change =
[Builder] Data source now return content with human property names instead of technical ones #4135
+3
View File
@@ -0,0 +1,3 @@
See release notes here ->
https://baserow.io/blog/baserow-2-2-release-notes
+6
View File
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
]
}