server Docker container should store config and message store in volume to support upgrades #152
Labels
Sans labels
applications
BLOCKED
bug
design
duplicate
enhancement
fixed?
funding-needed
help wanted
infrastructure
invalid
payments
qubes
question
ready-for-implementation
refactor
spam
tapir-server
testing
tor
wontfix
Sans jalon
2 participants
Notifications
Échéance
Aucune échéance n'a été définie.
Dépendances
Aucune dépendance définie.
Référence : cwtch.im/cwtch#152
Chargement…
Référencer dans un nouveau ticket
Sans contenu.
Supprimer la branche "%!s(<nil>)"
La suppression d’une branche est permanente. Bien qu’une branche supprimée puisse temporairement subsister, elle NE PEUT PAS être facilement restaurée. Continuer ?
https://stackoverflow.com/questions/26734402/how-to-upgrade-docker-container-after-its-image-changed
Yes, apologies.
I didn't want to mess with the golang code itself for t'other ticket.
The following PR resolves both issues; #153
For reference;
You should see that the new container (foo) retains the config (hidden service address etc) of the old container (container1).
any reason no to have the DOCKERFILE set the env variable of CWTCH_CONFIG_DIR to keep it even simpler to start? I can add this, I'm just adding the message store and metrics to the config dir too
None at all.
An if check in docker-entrypoint would be ideal.
done, works now, with #154