Compare commits

..
6 changed files with 26 additions and 21 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
export LOOMIO_ENTRYPOINT_VERSION=v5
export LOOMIO_ENTRYPOINT_VERSION=v6
# cannot be integrated into entrypoint.sh as it requires the operator to create a user first
function make_last_user_admin()
+5 -5
View File
@@ -33,7 +33,7 @@ x-environment: &default-env
services:
app:
image: loomio/loomio:v2.25.2
image: loomio/loomio:v2.25.3
configs:
- source: entrypoint
target: /entrypoint.sh
@@ -71,10 +71,10 @@ services:
- "traefik.http.routers.${STACK_NAME}.rule=Host(`${DOMAIN}`${EXTRA_DOMAINS})"
- "traefik.http.routers.${STACK_NAME}.entrypoints=web-secure"
- "traefik.http.routers.${STACK_NAME}.tls.certresolver=${LETS_ENCRYPT_ENV}"
- "coop-cloud.${STACK_NAME}.version=1.0.0+v2.25.2"
- "coop-cloud.${STACK_NAME}.version=2.1.0+v2.25.3"
- "backupbot.backup:=${ENABLE_BACKUPS:-true}"
worker:
image: loomio/loomio:v2.25.2
image: loomio/loomio:v2.25.3
configs:
- source: entrypoint
target: /entrypoint.sh
@@ -97,7 +97,7 @@ services:
- loomio_files:/loomio/public/files
- loomio_plugins:/loomio/plugins/docker
db:
image: postgres:12.17
image: pgautoupgrade/pgautoupgrade:17-debian
networks:
- backend
volumes:
@@ -138,7 +138,7 @@ services:
environment:
<<: *redis-env
cron:
image: loomio/loomio:v2.25.2
image: loomio/loomio:v2.25.3
configs:
- source: entrypoint
target: /entrypoint.sh
+7 -10
View File
@@ -31,16 +31,13 @@ if [ -n "$1" ]; then
echo "Running '$1'"
$1
else
if [ ! -f /loomio/storage/migrations_ran ] && [ "${TASK:-}" = "worker" ]; then
echo "first deploy, running DB setup..."
rake db:setup
touch /loomio/storage/migrations_ran
fi
echo "running DB migrations..."
rake db:migrate
echo "DB migrations finished"
echo "starting loomio!"
/loomio/docker_start.sh
if [ "$TASK" = "worker" ]; then
bundle exec sidekiq
else
bundle install
bundle exec rake db:prepare
bundle exec puma -C config/puma.rb
fi
fi
+10 -5
View File
@@ -1,9 +1,14 @@
In this release the passwords for smtp and postgres DB were moved into docker secrets. Therefore a few manual steps need to be performed (also available in recipe documentation)
* adapt your env file with the new vars, especially SECRET_DB_PASSWORD_VERSION=v1 and SECRET_SMTP_PASSWORD_VERSION=v1
* insert your smtp password with abra app secret insert <app-name> smtp_password v1 "<your-password>"
* abra app secret generate <app-name> db_password v1
* abra app deploy <app-name>
* set the new password in DB: abra app cmd <app-name> db set_new_db_password
* adapt your env file with the new vars, especially `SECRET_DB_PASSWORD_VERSION=v1` and `SECRET_SMTP_PASSWORD_VERSION=v1` (remember, you can use `abra app check <app-name>` to check for any missing variables)
* insert your existing smtp password with `abra app secret insert <app-name> smtp_password v1 "<your-password>"`
Then, choose whether to keep the existing insecure database password (easy):
* `abra app secret insert <app-name> db_password v1 password`
Or, switch to a new secure password (harder, better):
* `abra app secret generate <app-name> db_password v1`
* `abra app deploy <app-name>`
* set the new password in DB: `abra app cmd <app-name> db set_new_db_password` (NOTE: if you get "FATA loomio doesn't have a set_new_db_password function" here, run `cd ~/.abra/recipes/loomio && git checkout main`, then re-run the `abra app cmd` command with `-C` at the end)
* redeploy
+2
View File
@@ -0,0 +1,2 @@
The major change in this release is the upgrade of postgres db from 10 to 17. As we use a container with automatic migration, this should work seemlessly without operator intervention.
NEVERTHELESS, please create a BACKUP before you upgrade to this version!
+1
View File
@@ -0,0 +1 @@
DB initialization issues with wrong migration should be fixed now. (But not really sure why)