feat(discourse): switch app to official discourse/discourse image (experimental)
All checks were successful
cc-ci/testme cc-ci: success
All checks were successful
cc-ci/testme cc-ci: success
Replaces the paywalled bitnamilegacy app with the official discourse/discourse image behind Traefik. DB is reused as-is; uploads migrate from the legacy bitnami volume idempotently. The wrapper entrypoint injects the db_password and smtp_password secrets (the official image has no *_FILE support). SMTP env vars are renamed to the official names; release notes cover the migration. Recipe 0.8.1+3.5.0 -> 1.0.0+3.5.3 (major: new image, env/volume/port changes).
This commit is contained in:
15
cc-app-entrypoint.sh
Executable file
15
cc-app-entrypoint.sh
Executable file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
# Co-op Cloud wrapper around the official image's /sbin/boot.
|
||||
# discourse/discourse reads passwords from the process env (pups/Ruby; it has no
|
||||
# *_FILE support), so inject them from the docker secrets before booting.
|
||||
set -e
|
||||
|
||||
if [ -f /run/secrets/db_password ]; then
|
||||
export DISCOURSE_DB_PASSWORD="$(cat /run/secrets/db_password)"
|
||||
fi
|
||||
|
||||
if [ -f /run/secrets/smtp_password ]; then
|
||||
export DISCOURSE_SMTP_PASSWORD="$(cat /run/secrets/smtp_password)"
|
||||
fi
|
||||
|
||||
exec /sbin/boot
|
||||
Reference in New Issue
Block a user