1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder
Madhav Puri 54240f8da9 Support for passing build-time variables in build context
- The build-time variables are passed as environment-context for command(s)
run as part of the RUN primitve. These variables are not persisted in environment of
intermediate and final images when passed as context for RUN. The build environment
is prepended to the intermediate continer's command string for aiding cache lookups.
It also helps with build traceability. But this also makes the feature less secure from
point of view of passing build time secrets.

- The build-time variables also get used to expand the symbols used in certain
Dockerfile primitves like ADD, COPY, USER etc, without an explicit prior definiton using a
ENV primitive. These variables get persisted in the intermediate and final images
whenever they are expanded.

- The build-time variables are only expanded or passed to the RUN primtive if they
are defined in Dockerfile using the ARG primitive or belong to list of built-in variables.
HTTP_PROXY, HTTPS_PROXY, http_proxy, https_proxy, FTP_PROXY and NO_PROXY are built-in
variables that needn't be explicitly defined in Dockerfile to use this feature.

Signed-off-by: Madhav Puri <madhav.puri@gmail.com>
2015-09-16 03:31:15 -07:00
..
command Support for passing build-time variables in build context 2015-09-16 03:31:15 -07:00
parser Support for passing build-time variables in build context 2015-09-16 03:31:15 -07:00
bflag.go Just add some code doc around the use of AddXXX func to avoid any confusion 2015-08-07 08:07:27 -07:00
bflag_test.go Fix golint warnings for builder 2015-07-22 13:29:03 +08:00
dispatchers.go Support for passing build-time variables in build context 2015-09-16 03:31:15 -07:00
evaluator.go Support for passing build-time variables in build context 2015-09-16 03:31:15 -07:00
internals.go Merge pull request #15877 from Microsoft/10662-trigger 2015-09-03 20:04:05 -07:00
internals_unix.go make docker compile on freebsd 2015-07-29 21:25:56 +03:00
internals_windows.go Windows: Fixup builder\internals.go 2015-05-20 08:55:13 -07:00
job.go Support for passing build-time variables in build context 2015-09-16 03:31:15 -07:00
job_test.go Fix uses of "int" where "int64" should be used instead 2015-07-31 16:31:40 -07:00
shell_parser.go Fix golint warnings for builder 2015-07-22 13:29:03 +08:00
shell_parser_test.go Add some builder getEnv tests 2015-08-22 13:12:43 -07:00
support.go Fix golint warnings for builder 2015-07-22 13:29:03 +08:00
support_test.go Support downloading remote tarball contexts in builder jobs. 2015-06-19 16:35:00 -03:00
words Add support for more advanced ${xxx:...} syntax 2015-04-01 08:11:15 -07:00