switch app to official discourse/discourse image (with idempotent migration) #16
Reference in New Issue
Block a user
Delete Branch "discourse-official"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Replaces the paywalled bitnamilegacy app with the official discourse/discourse image
The migration is automatic, other than the env var changes mentioned in release notes (https://git.coopcloud.tech/coop-cloud/discourse/pulls/16/files#diff-4aee966e8b70b89de8df216eef186a72e555f8db)
The new discourse image seems to require
pgvectoralso... so we are stuck usingpgvector+ our bespoke auto-postgres-upgrade script (but on the plus side, it appears to be working)Looks good, and nice to see that migrating works fine for everyone on the Bitnami image!
Have you seen the discourse/discourse-postgres image? This looks to be based on pgvector and includes auto-upgrade.
thank you @dannygroenewegen ! I hadn't seen that. pushing a new commit now that uses that instead
with this
discourse/discourse-postgresversion, I couldn't figure out how to do the automatic detecting of the postgresinstall user(which defaults topostgresbut could bediscoursefor some older deployments), so I added a new env var where this could be set and a release note about checking if this env need to be set for this migrationso one more manual step for the migration, but I think using this discourse/discourse-postgres image simplifies things overall and going forward
I have tested the migration path again, but will confirm again when my brain is less tired
just tested this on a production deployment, and it appeared to work after running into another issue that you need to
abra app undeploybefore deploying this new version, for the migration to run smoothlyadded a warning to release/next with this info
probably also a good idea to ensure you have a backup before this big upgrade just in case, but merging it in now