Patrick Van Stee
4121ae50b5
Modify parsing functions and config structs to accept hcl changes
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
2020-04-29 08:51:26 -04:00
Tibor Vass
2a257a8252
bake: allow overriding no-cache and pull per target via --set
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2020-04-23 18:11:22 +00:00
Tibor Vass
078b65905a
bake: add test cases for pattern matching
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2020-04-23 05:54:11 +00:00
Tibor Vass
2bca8fa677
bake: allow pattern matching for target names in --set
...
Although bake is for running multiple targets, --set required a single
target name for overriding a property. This change allows matching
multiple targets for overrides.
Signed-off-by: Tibor Vass <tibor@docker.com>
2020-04-23 05:54:11 +00:00
Tibor Vass
14e65ff3b4
bake: fix override+inheritance bug
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2020-04-21 22:42:03 +00:00
Tibor Vass
3282dae09b
bake: add tests for override+inheritance bug
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2020-04-21 22:38:06 +00:00
Brian Goff
6634f1e75c
Support reading from env on bake --set <t>.args
...
This works just like the `build` command where if you have `--build-arg
FOO`, it will read the variable from env and only set a value if the
variable is defined.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2019-10-30 15:31:38 -07:00
Tonis Tiigi
15a5a42eb1
bake: merge targets on same groups
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-08-19 15:48:42 -07:00
Tibor Vass
8b2171f78a
bake: honor --no-cache and --pull
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-07-30 19:39:01 -07:00
Tibor Vass
92f1234aaa
Merge pull request #116 from tonistiigi/build-arg-default
...
build: load default build args from env
2019-07-30 19:20:09 -07:00
Tonis Tiigi
662c0768cb
bake: replace env in compose files
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-30 16:44:05 -07:00
Tonis Tiigi
43150ef849
build: load default build args from env
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-30 16:32:36 -07:00
Tibor Vass
b741350afd
bake: compose parser should only error if there are neither build nor image fields
...
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-05-29 18:12:30 -07:00
Jack Laxson
4b2666b9d6
Change compose file handling to require valid service specifications
...
Added the checks and some tests
One of the tests wasn't valid docker-compose.yml, that's been changed.
Bad config throws an error and has a test
Signed-off-by: Jack Laxson <jackjrabbit@gmail.com>
2019-05-24 17:41:48 -07:00
Tonis Tiigi
f1fd9a274b
bake: make dockerfile relative to context
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-05-24 16:04:01 -07:00
Tonis Tiigi
b68b005f68
vendor: update buildkit to f238f1e
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-05-14 17:59:01 -07:00
Tonis Tiigi
43356bbbbe
bake: fix parsing target from compose files
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-25 21:36:28 -07:00
Tonis Tiigi
94a0422a1b
rename to docker/buildx
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-24 20:02:20 -07:00
Tonis Tiigi
a238b05a4c
bake: add output key
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-23 15:49:42 -07:00
Tonis Tiigi
ef4afac948
bake: fix dockerfile and context defaults
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-19 22:54:34 -07:00
Tibor Vass
6e3dfe72cb
Merge pull request #31 from tonistiigi/platforms-fixes
...
fixes for managing platforms
2019-04-18 20:11:28 -07:00
Tonis Tiigi
96a148020a
build: add cache-from and cache-to support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-17 23:07:22 -07:00
Tonis Tiigi
e773d0eb2a
util: add platformutil
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-17 16:49:28 -07:00
Tonis Tiigi
a932d52e35
bake: initial implementation
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-04-09 19:26:53 -07:00