Dockerise le bot pour le déployer via Komodo#22
Merged
Conversation
Suit le même pattern que Web_Site (voir UnionRolistes/Web_Site#20) : conteneuriser pour que Komodo Periphery puisse le gérer (root limitée à /etc/komodo, hors de portée pour un déploiement systemd natif classique). - config.json (gitignored, contient le token Discord) monté en volume plutôt que dupliqué dans l'image ou dans Komodo - npm install --ignore-scripts : package.json référence un script "install": "node setup.js" mais ce fichier n'existe pas dans le repo (bug préexistant, contourné plutôt que corrigé ici — hors scope) Testé : build OK, démarrage du conteneur échoue proprement sur "config.json manquant" (attendu sans token réel), confirmant que le chargement du code et des dépendances fonctionne.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #21
Ce qui change
Dockerfile:node:20-alpine,npm install --ignore-scripts(lescript
"install": "node setup.js"danspackage.jsonréférence unfichier inexistant — bug préexistant, contourné ici plutôt que corrigé,
hors scope de cette PR)
docker-compose.yml: build + run,config.json(gitignored, contientle token Discord) et
logs/montés en volume plutôt que dupliqués dansl'image
Après merge
Le conteneur sera géré par Komodo, même pattern que
UnionRolistes/Web_Site#20.Testé
config.json: échec propre et attendu(
Cannot find module './config.json'), confirme que le code et lesdépendances chargent correctement