| Summary: | Support env file during application deployment | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Alfredo Quiroga <aquiroga> |
| Component: | openshift-controller-manager | Assignee: | Ben Parees <bparees> |
| Status: | CLOSED NEXTRELEASE | QA Contact: | zhou ying <yinzhou> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 3.4.0 | CC: | aos-bugs, aquiroga, bparees |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2017-03-24 13:44:04 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Alfredo Quiroga
2016-10-31 19:19:46 UTC
(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. |