Open kinghuang opened 6 years ago
You could do this explicitly with set
.
ie. docker-app render --set PWD=$PWD
One of the things we're experimenting with here is making that interface very explicit. Though better support for this pattern might be nice.
Description
Docker Compose uses environment variables for variable substitution in Compose files. I leverage this heavily in GitLab CI pipelines to "render" Compose files (using
docker-compose config
). CI variables are passed to jobs as environment variables, and the Compose files in my repositories use these in various ways.Is it possible to introduce an option to
docker-app render
anddocker-app deploy
to use environment variables as a source for settings?Steps to reproduce the issue:
$PWD
.docker-app render
.Describe the results you received:
The rendered app does not contain the value of $PWD from the environment.
Describe the results you expected:
I would like an option to tell Docker App to use environment variables as settings.
Additional information you deem important (e.g. issue happens only occasionally):
Output of
docker version
:Output of
docker-app version
:Output of
docker info
:Additional environment details (AWS, VirtualBox, physical, etc.):
Docker for Mac 18.06.0-ce-mac69 on macOS 10.13.6.