Hide Forgot
Description of problem: - Support env file during application deployment For example: https://docs.docker.com/compose/env-file/ Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
(In reply to Alfredo Quiroga from comment #0) > Description of problem: > > - Support env file during application deployment > > For example: > > https://docs.docker.com/compose/env-file/ > Can you please provide more use-cases how you think the env-file should be used? We can't reference an 'env-file' in deployment config, however I think what you want here is the Template parameters.
Hi: The example can be seen here: https://docs.docker.com/compose/env-file/ As an additional example, today we can do the following: oc new-app lawwton/welcome -e FOO=BAR -e HELLO=WORLD This issue calls for the same functionality provided in compose (env-file) where we would be able to say: oc new-app lawwton/welcome -e /tmp/my-env.properties oc start-build ... oc deploy ... All of those commands should support this. my-env.properties would contain: # My properties FOO=BAR HELLO=WORLD Hope that helps. Thanks in advance.
This has been implemented. https://docs.openshift.org/latest/dev_guide/application_lifecycle/new_app.html#specifying-environment-variables It will be part of the OCP3.5 release which is coming soon.
Awesome! Tx.