1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/server/router
Doug Davis cdb8ea90b0 Fix processing of unset build-args during build
This reverts 26103.  26103 was trying to make it so that if someone did:
  docker build --build-arg FOO .
and FOO wasn't set as an env var then it would pick-up FOO from the
Dockerfile's ARG cmd.  However, it went too far and removed the ability
to specify a build arg w/o any value. Meaning it required the --build-arg
param to always be in the form "name=value", and not just "name".

This PR does the right fix - it allows just "name" and it'll grab the value
from the env vars if set. If "name" isn't set in the env then it still needs
to send "name" to the server so that a warning can be printed about an
unused --build-arg. And this is why buildArgs in the options is now a
*string instead of just a string - 'nil' == mentioned but no value.

Closes #29084

Signed-off-by: Doug Davis <dug@us.ibm.com>
2016-12-07 07:41:55 -08:00
..
build Fix processing of unset build-args during build 2016-12-07 07:41:55 -08:00
checkpoint router: Return explicit error rather than 404 for experimental. 2016-11-17 15:51:47 -08:00
container Remove hostname validation as it seems to break users 2016-11-30 19:22:07 +01:00
image Add reference filter and deprecated filter param… 2016-11-11 15:34:01 +01:00
network Fix network attachable option. 2016-11-28 16:54:56 -08:00
plugin Add HTTP client timeout. 2016-11-21 13:11:40 -08:00
swarm correct the http return code of secret remove 2016-11-30 19:45:45 +08:00
system api: types: keep info.SecurityOptions a string slice 2016-11-19 13:21:16 +01:00
volume Use a config to generate swagger api types 2016-10-31 11:13:41 -04:00
experimental.go router: Return explicit error rather than 404 for experimental. 2016-11-17 15:51:47 -08:00
local.go api/server/router: add Cancellable function 2016-03-25 10:19:23 -07:00
router.go Decouple the "container" router from the actual daemon implementation. 2016-02-08 11:30:57 -05:00