Bug 50898

Summary: Add env file support for docker-compose apps
Product: UCS Reporter: Felix Botner <botner>
Component: App CenterAssignee: Felix Botner <botner>
Status: CLOSED FIXED QA Contact: Dirk Wiesenthal <wiesenthal>
Severity: normal    
Priority: P5 CC: michelsmidt, wiesenthal
Version: UCS 4.4   
Target Milestone: UCS 4.4-3-errata   
Hardware: Other   
OS: Linux   
See Also: https://forge.univention.org/bugzilla/show_bug.cgi?id=51045
https://forge.univention.org/bugzilla/show_bug.cgi?id=51049
What kind of report is it?: Development Internal What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:

Description Felix Botner univentionstaff 2020-03-05 10:02:01 CET
Is the app has en env file, the file should be added to all docker-compose services,
Comment 1 Felix Botner univentionstaff 2020-03-05 10:22:56 CET
* added new App ini file parameter docker_inject_env_file (None, all, main)
* if env file exists and docker_inject_env_file is not None, a new new file
  app_id.env is created in the docker-compose directory (with UCR filter)
* if docker_inject_env_file is main, this file is added to the main service
  as env_file in the docker-compose.yaml file
  if docker_inject_env_file is all, this file is added to all services


yaml - 150795e633a4ad21b4b4a57a09afa4ffce40db55
univention-appcenter - 9e55c20ae306d47a0399c3e9dc62da77ecbcddd0
Comment 2 Dirk Wiesenthal univentionstaff 2020-03-11 12:06:09 CET
Env injected if requested: OK
Env not injected if not requested: OK
UCR filter on env: OK
File permissions: OK
YAML: OK

Added 80_docker/88_docker_env_file in ucs-test
Comment 3 Erik Damrose univentionstaff 2020-03-11 14:42:08 CET
<http://errata.software-univention.de/ucs/4.4/475.html>