stephane-klein / backlog

My public backlog
30 stars 1 forks source link

Publier un playground d'hébergement Discourse qui suis la méthode 12 factor #188

Open stephane-klein opened 1 year ago

stephane-klein commented 1 year ago

Je souhaite, dans cette issue, publier un playground d'hébergement permettant de déployer une instance Discourse avec les contraintes suivantes :

stephane-klein commented 1 year ago

En lien avec ce sujet https://github.com/stephane-klein/backlog/issues/189

stephane-klein commented 1 year ago

https://mamot.fr/@stephane_klein/110158133844664677

stephane-klein commented 1 year ago

J'ai trouvé ce dépôt GitHub https://github.com/tiredofit/docker-discourse

stephane-klein commented 1 year ago
docker-discourse/examples on  main [!?]
❯ docker-compose up discourse
examples_postgres_1 is up-to-date
examples_redis_1 is up-to-date
Creating examples_discourse_1 ... done
Attaching to examples_discourse_1
discourse_1    |                                                                        ,---.
discourse_1    | ,--------.,--.                 ,--.            ,---.    ,--. ,--------.|   |
discourse_1    | '--.  .--'`--',--.--. ,---.  ,-|  |     ,---. /  .-'    |  | '--.  .--'|  .'
discourse_1    |    |  |   ,--.|  .--'| .-. :' .-. |    | .-. ||  `-,    |  |    |  |   |  |
discourse_1    |    |  |   |  ||  |   \   --.\ `-' |    ' '-' '|  .-'    |  |.--.|  |   `--'
discourse_1    |    `--'   `--'`--'    `----' `---'      `---' `--'      `--''--'`--'   .--.
discourse_1    |                                                                        '--'
discourse_1    | Image:  tiredofit/discourse | Version  3.1.4 Type 'image_changelog' for details
discourse_1    | Repository/Issues/Support:  https://github.com/tiredofit/docker-discourse/
discourse_1    |            Sponsor me for development and upkeep: https://www.tiredofit.ca/sponsor
discourse_1    |
discourse_1    | 2023-04-07.15:05:58 [NOTICE] ** [timezone] Timezone: Setting to 'America/Vancouver' from 'Etc/GMT'
discourse_1    | 2023-04-07.08:05:58 [NOTICE] ** [monitoring] Container configured for monitoring with 'zabbix modern'
discourse_1    | 2023-04-07.08:05:58 [NOTICE] ** [scheduling] Container configured for scheduled tasks with 'cron'
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [messaging] Container configured to route mail via SMTP to 'mailcatcher'
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [nginx] Disabling Nginx Functionality
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Details
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Lazy YouTube
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Local Dates
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Narrative Bot
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Polls
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Presence
discourse_1    | 2023-04-07.08:05:59 [NOTICE] ** [discourse] Enabling Plugin: Style Guide
discourse_1    | 2023-04-07.08:05:59 [INFO] ** [discourse] Migrating Database - This may take a bit..
discourse_1    | 2023-04-07.08:06:16 [INFO] ** [discourse] Precompiling Assets - This may take a bit..
discourse_1    | 2023-04-07.08:07:53 [STARTING] ** [monitoring] [1] Starting Zabbix Agent (modern) 6.4.0
discourse_1    | 2023-04-07.08:07:53 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:07:53 [STARTING] ** [scheduling] [1] Starting cron
discourse_1    | 2023-04-07.08:07:54 [STARTING] ** [sidekiq] [1] Starting Sidekiq
discourse_1    | 2023-04-07.08:07:56 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
discourse_1    | 2023-04-07.08:07:58 [STARTING] ** [rails] Starting Rails - Discourse version v3.0.2
...

Je ne comprends pas pourquoi le projet https://github.com/tiredofit/docker-discourse a fait le choix de compiler pendant presque 2 min les assets de Discourse.
Ce choix ne respecte pas le facteur 5 : https://12factor.net/fr/build-release-run

stephane-klein commented 1 year ago

Je viens de créer cette issue https://github.com/tiredofit/docker-discourse/issues/3.

stephane-klein commented 1 year ago

Je suis un peu perdu sur le fonctionnement du container Discourse tiredofit/docker-discourse.
Cette image est basée sur https://github.com/tiredofit/docker-debian/blob/main/Dockerfile qui utilise https://github.com/just-containers/s6-overlay

Pour le moment, je ne comprends pas trop l'intérêt de https://github.com/just-containers/s6-overlay versus http://supervisord.org/ :thinking:.

stephane-klein commented 1 year ago

Je suis en train de lire https://github.com/just-containers/s6-overlay#the-docker-way

stephane-klein commented 1 year ago

Je viens de voir https://github.com/flyimg/base-image/issues/3

stephane-klein commented 1 year ago

Je commence à lire https://ahmet.im/blog/minimal-init-process-for-containers/

stephane-klein commented 1 year ago

Je commence à lire https://ahmet.im/blog/minimal-init-process-for-containers/

https://mamot.fr/@stephane_klein/110158402565762158

stephane-klein commented 1 year ago

J'ai quelques difficultés avec https://github.com/tiredofit/docker-discourse, j'ai posté 3 bugs https://github.com/tiredofit/docker-discourse/issues, j'ai contacté l'auteur de ce projet via Matrix.

En attendant, je vais me lancer à la recherche de projet alternatif.

stephane-klein commented 1 year ago

En attendant, je vais me lancer à la recherche de projet alternatif.

J'ai envie de tester :

https://github.com/saulshanabrook/discourse-hosting

stephane-klein commented 1 year ago

En attendant, je vais me lancer à la recherche de projet alternatif.

J'ai envie de tester :

https://github.com/saulshanabrook/discourse-hosting

J'ai cette erreur https://github.com/saulshanabrook/discourse-hosting/issues/3.

Je suis plutôt triste, je n'ai rien qui fonctionne ! Je ne comprends pas pourquoi que le déploiement d'un Discourse soit si compliqué 😟.

stephane-klein commented 1 year ago

Je continue ma recherche.

stephane-klein commented 1 year ago

Étant donné mes difficultés, je vais essayer à nouveau la méthode officielle #191, même si ce n'est pas une méthode que j'apprécie.