Bug 50898 - Add env file support for docker-compose apps
Add env file support for docker-compose apps
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: App Center
UCS 4.4
Other Linux
: P5 normal (vote)
: UCS 4.4-3-errata
Assigned To: Felix Botner
Dirk Wiesenthal
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2020-03-05 10:02 CET by Felix Botner
Modified: 2020-04-01 08:44 CEST (History)
2 users (show)

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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>