Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deployment) : Cleanup old log folders #382

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

vperron
Copy link
Contributor

@vperron vperron commented Feb 13, 2025

No description provided.

@vperron vperron self-assigned this Feb 13, 2025
@vperron vperron requested a review from vmttn as a code owner February 13, 2025 12:51
deployment/main.tf Outdated Show resolved Hide resolved
@vperron vperron force-pushed the vperron/cleanup-docker-volume-logs branch from c2519d5 to dc82a93 Compare February 18, 2025 16:40
@vperron
Copy link
Contributor Author

vperron commented Feb 18, 2025

@vmttn j'ai proposé un service systemd de type oneshot nommé cleanup.

Oneshot et "started" = il est lancé par terraform et on attend la fin.
Les logs peuvent etre consultés via journalctl -u cleanup

Ma question est: est-ce qu'on ne créerait pas une unit oneshot nommée di-stack par exemple qui s'occuperait de faire cleanup + démarrage du docker-compose ?

@vperron vperron requested a review from vmttn February 18, 2025 16:43
@vperron
Copy link
Contributor Author

vperron commented Feb 19, 2025

Vu : on garde bien un service de cleanup indépendant et on fait une unit qui se lance régulièrement.

@vperron vperron force-pushed the vperron/cleanup-docker-volume-logs branch from dc82a93 to 84878a2 Compare February 19, 2025 13:27
@vperron
Copy link
Contributor Author

vperron commented Feb 19, 2025

Corrigé, mis sous forme de timer + unit systemd. On pourra constater demain matin si ça a fonctionné; en attendant le déploiement sur staging fonctionne.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants