Re:Setting Up Your Development Environment with Docker Compose
by girvo on Tuesday August 23, 2016 @08:52PM
(#12348929)
They _can_ be baked into the image via build-args or the "ENV" Dockerfile syntax, but as your Dockerfile is committed to git normally this has the same dramas, of course! You're completely correct, but I wanted to mention that it was possible :)
Re:Setting Up Your Development Environment with Docker Compose
by droningparrot on Thursday August 25, 2016 @11:22AM
(#12359699)
Build-args and ENVs are not the same thing. Build-args use the ARG syntax and are baked in during docker build. ENVs are not baked in; the values are passed in during docker run or docker exec.
Re:Setting Up Your Development Environment with Docker Compose
by girvo on Thursday August 25, 2016 @06:43PM
(#12363070)
You are correct, they are not the same thing; however they can be combined to bake in an ENV to an image as a default value for a given ENV key, controlled at "docker build".
Re:Setting Up Your Development Environment with Docker Compose
by Feuilles_Mortes on Tuesday August 23, 2016 @08:32PM
(#12348868)
This is correct - I just set this up today.
Environment files are—unless I'm missing something—a run-time consideration. You provide the an env-file you have locally to connect to your development images, etc., and could deploy (possibly) the same image elsewhere, with a different env-file. But the env-file values are not baked into the image.