Univention Bugzilla – Bug 41062
Support params in the "docker create" call
Last modified: 2016-04-27 17:32:36 CEST
When a Docker App is installed, a docker container is created via docker create ... Adapting the parameters of this call is somewhat limited. You have influence on "-e" (env variables), "-p" (ports), "-v" (volumes). To support --mac-address, --net and so on we should support a generic mechanism: ucr get appcenter/apps/$app/docker/startparams=... should be included in the docker create call. The variable can then be set by the preinst script of the corresponding App.
Called it appcenter/apps/$app/docker/params in univention-appcenter 5.0.20-47.160.201604251220 E.g. ucr set appcenter/apps/%(app_name)s/docker/params="-e FOO=bar --net=host" They can be set in the preinst and change the docker create call. Test: 80_docker/54_app_preinst
This causes a forever hanging process if the variable is unset. Because shlex.split(None) waits for stdin.
Fixed in univention-appcenter 5.0.20-48.161.201604261100
OK: the parameter does only work during docker image creation (=app installation or app upgrade). OK: --mac-address works
<http://errata.software-univention.de/ucs/4.1/157.html>