Univention Bugzilla – Bug 44562
Add option to univention-app to renew an existing App container
Last modified: 2021-07-28 09:12:07 CEST
As pointed out in Bug #44561, environment variables are only passed to a docker container when the container is created. It's not possible to change them afterwards (https://github.com/moby/moby/issues/8838#issuecomment-285789380). When ENV variables need to be changed (e.g. because the proxy changed), the only possibilities to get them updated inside a docker container are: a) wait for an App upgrade b) remove and re-install the App Removing the App also removes data and drops databases. We should have a simple to use option in univention-app that discards the current container and deploys it again - with the new ENV variables but without deleting data.
There is a Customer ID set so I set the flag "Enterprise Customer affected".
This issue has been filed against UCS 4.2. UCS 4.2 is out of maintenance and many UCS components have changed in later releases. Thus, this issue is now being closed. If this issue still occurs in newer UCS versions, please use "Clone this bug" or reopen it and update the UCS version. In this case please provide detailed information on how this issue is affecting you.
Still relevant, especially good for debugging
(In reply to Christina Scheinig from comment #3) > Still relevant, especially good for debugging Have you tried univention-app reinitialize $app Only works for certain Apps (namely those without a setup script)
(In reply to Dirk Wiesenthal from comment #4) > (In reply to Christina Scheinig from comment #3) > > Still relevant, especially good for debugging > > Have you tried > univention-app reinitialize $app > > Only works for certain Apps (namely those without a setup script) Yes, i tried this (worked), but afaik is this nearly the same as remove and re-install the App, which I would not like to do, for debugging e.g. proxy.