One area where this would help is versioning. E.g. if I want to arbitarily build a version for a source controlled tag 1, 2, 3, 4 then this could be a variable passed into the docker file.
I agree that as a principle you are best to have repeatable Dockerfiles AND images and configure containers at instantiation time but I think I'm a +1 on this change, especially labelled as macros so it's more a text substitution than an environment concept.
--
You received this message because you are subscribed to the Google Groups "docker-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docker-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
This could be implemented either by:1) Adding the SET directive as a special case in server/buildfile.go, which would update the build environment. Each replacement would be handled in BuildStep, before running the relevant Cmd_____2) Creating a preprocessing stage in server/buildfile.go, where the entire file is preprocessed and then run through the build.
+1 for being able to use variables in Dockerfiles.