Univention Bugzilla – Bug 50071
Documentation: Reinitialize Docker App
Last modified: 2022-07-04 17:23:18 CEST
The changes made for Bug #50057 need to be addressed in the App Provider Documentation: - new command "univention-app reinitialize $myapp" - this command can be used in the configure-host script +++ This bug was initially created as a clone of Bug #50057 +++ We want to be able to reinitialize a running Docker App: This creates a new container but with the latest App Settings. This is necessary, if the App cannot apply App Settings during runtime but relies on getting those as environment variables during the container creation.
Added a section about reinitialize to the "React on app settings" section and also described the limitations. See https://git.knut.univention.de/univention/ucs/compare/4.4-2...ngulden%2F50071-reinitialize-docker-app For QA, please build branch `ngulden/50071-reinitialize-docker-app` in Jenkins at http://jenkins.knut.univention.de:8080/job/BuildDocBookBranch/ After successful QA, please reopen so I can merge it. Thank you.
The changes are not published yet. Why is this bug closed?
Okay, reinitialize is mentioned. I am missing one sentence about what it means to "reinitialize" in contrast to, well, not reinitialize: The container(s) is/are stopped, removed the rebuilt with the new set of App Settings. This may be necessary if the software reads configuration options only once during the startup. Docker does not allow to reset environment variables in already created containers, so one may need to recreate them entirely, otherwise a restart of the container may reset the old behaviour.
Also, please rephrase: After the settings are changed, two scripts are executed each with the parameter <userinput>settings</userinput> parameter.
Rebased the branch and updated the text according to the feedback.