1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/api/types
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
..
backend record pid of exec'd process 2016-10-20 17:06:11 +02:00
blkiodev Add engine-api types to docker 2016-09-07 11:05:58 -07:00
container hack/swagger-gen.sh is not exist, it should be /hack/generate-swagger-api.sh 2016-11-22 16:32:32 +08:00
events Add engine-api types to docker 2016-09-07 11:05:58 -07:00
filters Fixes ImageList to be retro-compatible with older API 2016-11-28 22:15:50 +01:00
mount api: add TypeTmpfs to api/types/mount 2016-10-28 08:38:32 +00:00
network Show peer nodes in network inspect for swarm overlay networks 2016-11-09 13:58:04 -08:00
reference Add engine-api types to docker 2016-09-07 11:05:58 -07:00
registry hack/swagger-gen.sh is not exist, it should be /hack/generate-swagger-api.sh 2016-11-22 16:32:32 +08:00
strslice Add engine-api types to docker 2016-09-07 11:05:58 -07:00
swarm Do not display the digest or size of swarm secrets 2016-11-22 18:13:27 -05:00
time Add engine-api types to docker 2016-09-07 11:05:58 -07:00
versions Merge pull request #28651 from YuPengZTE/devMD002 2016-11-22 13:11:37 +01:00
volume hack/swagger-gen.sh is not exist, it should be /hack/generate-swagger-api.sh 2016-11-22 16:32:32 +08:00
auth.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
client.go Fix processing of unset build-args during build 2016-12-07 07:41:55 -08:00
configs.go Add HTTP client timeout. 2016-11-21 13:11:40 -08:00
error_response.go Update to inline comments. 2016-10-31 11:13:41 -04:00
id_response.go Add an IDResponse type 2016-10-31 11:16:02 -04:00
image_summary.go Generate api/types:Image from the swagger spec 2016-10-20 13:24:23 -07:00
plugin.go Merge pull request #28601 from tiborvass/plugin-misc-fixes 2016-11-22 16:12:37 -08:00
plugin_device.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_env.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_interface_type.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_mount.go Generate plugin types from the swagger spec. 2016-10-20 13:24:23 -07:00
plugin_responses.go Rename Remote API to Engine API 2016-11-22 12:49:38 +00:00
port.go Generate api/types:Port from swagger spec. 2016-10-20 13:24:23 -07:00
seccomp.go Add engine-api types to docker 2016-09-07 11:05:58 -07:00
service_update_response.go Return warnings from service create and service update when digest pinning fails 2016-11-18 09:31:31 -08:00
stats.go Add support for Names and ID in stats format 2016-11-03 07:20:46 +01:00
types.go Rename Remote API to Engine API 2016-11-22 12:49:38 +00:00
volume.go Return warnings from service create and service update when digest pinning fails 2016-11-18 09:31:31 -08:00