Tõnis Tiigi
fd6de6b6ae
Merge pull request #281 from tonistiigi/load-fix
...
build: improve error checking on load
5 years ago
Tõnis Tiigi
f3111bcbef
Merge pull request #312 from donhui/master
...
README.md: update the content which not display in markdown
5 years ago
Donghui Wang
e6be472831
update the content which not display in markdown
...
Signed-off-by: Donghui Wang <977675308@qq.com>
5 years ago
Tibor Vass
e5217f26e2
Merge pull request #296 from tonistiigi/seed-fix
...
cmd: seed math rand
5 years ago
Tonis Tiigi
7f7acf7837
cmd: seed math rand
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago
Tonis Tiigi
baae4b2e71
build: improve error checking on load
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago
Tõnis Tiigi
42448c5f37
Merge pull request #280 from vanstee/hcl-json-support
...
Support parsing json config with hcl v2
5 years ago
Tõnis Tiigi
fc7875675c
Merge pull request #277 from cpuguy83/moar_hcl_stdlib_funcs
...
Update go-cty to pull in more stdlib funcs.
5 years ago
Patrick Van Stee
355261e49e
Parse bake config as hcl falling back to json
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Patrick Van Stee
44c840b31d
Add test of parsing a json bake config
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Patrick Van Stee
1bc068a583
Fix json keys for groups and targets
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Patrick Van Stee
340686a383
Support parsing json config with hcl v2
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Brian Goff
1ad87c6ba6
Update go-cty to pull in more stdlib funcs.
...
I needed "split" specifically so I can do something like:
```hcl
variable PLATFORMS {
default = "linux/amd64"
}
target foo {
platforms = split(",", "${PLATFORMS}")
# other stuff
}
```
Where the existing "csvdecode" does not work for this because it parses
the string into a list of objects instead of a list of strings.
I went ahead and just added all the available new functions.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
5 years ago
Tõnis Tiigi
eadf5eddbc
Merge pull request #270 from thaJeztah/prune_force_shorthand
...
Add -f shorthand flag for prune --force
5 years ago
Sebastiaan van Stijn
f4f58003fb
Add -f shorthand flag for prune --force
...
The docker builder prune command has a shorthand `-f` flag for `--force`:
docker builder prune --help
Usage: docker builder prune
Remove build cache
Options:
-a, --all Remove all unused build cache, not just dangling ones
--filter filter Provide filter values (e.g. 'until=24h')
-f, --force Do not prompt for confirmation
--keep-storage bytes Amount of disk space to keep for cache
Given that `buildx` can be used as a drop-in replacement for the native build
commands, it should match the UI, and also have a shorthand flag.
This patch also updates the flag's description to be in line with the docker commandline
With this patch applied;
buildx prune --help
Remove build cache
Usage:
buildx prune [flags]
Flags:
-a, --all Remove all unused images, not just dangling ones
--filter filter Provide filter values (e.g. 'until=24h')
-f, --force Do not prompt for confirmation
-h, --help help for prune
--keep-storage bytes Amount of disk space to keep for cache
--verbose Provide a more verbose output
Global Flags:
--builder string Override the configured builder instance
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
5 years ago
Tõnis Tiigi
bda4882a65
Merge pull request #268 from tiborvass/fix-tristate
...
Fix --pull and --no-cache behavior
5 years ago
Tibor Vass
77ddee9314
bake: fix pull and no-cache overrides
...
Signed-off-by: Tibor Vass <tibor@docker.com>
5 years ago
Tonis Tiigi
c9676c79d1
bake: fix hcl tags
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago
Tonis Tiigi
18095ee87b
bake: reset no-cache and pull if not set
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago
Tibor Vass
c4d07f67e3
commands: check if flag is set instead of using flagutil.Tristate
...
Fixes --pull and --no-cache without argument
Signed-off-by: Tibor Vass <tibor@docker.com>
5 years ago
Tõnis Tiigi
205165bec5
Merge pull request #192 from vanstee/hcl2-with-interpolation
...
Upgrade to hcl2 to support variables and functions
5 years ago
Patrick Van Stee
870b38837b
Allow for user defined functions
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Patrick Van Stee
10d4b7a878
Add example of interpolation to the README
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Patrick Van Stee
abed97cf33
Include test cases of different hcl files
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Patrick Van Stee
f10d8dab5e
Define variables as blocks with defaults
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Patrick Van Stee
5185d534bc
Include go-cty stdlib functions in HCL file scope
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Patrick Van Stee
a520de447e
Provide current env as variables in eval context
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Patrick Van Stee
4121ae50b5
Modify parsing functions and config structs to accept hcl changes
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Patrick Van Stee
87c4bf1df9
Upgrade hcl to v2
...
Signed-off-by: Patrick Van Stee <patrick@vanstee.me>
5 years ago
Tibor Vass
09339bf500
Merge pull request #263 from tonistiigi/platforms-print
...
separate manual and automatically detected platforms
5 years ago
Tõnis Tiigi
af9edb6ba4
Merge pull request #246 from cpuguy83/override_instance
...
Add option to build/bake to override instance
5 years ago
Brian Goff
b2ec1d331c
Add builder as a global flag.
...
This allows all subcommands to use this flag.
Additionally reads the default value for the flag from the
`BUILDX_BUILDER` env var.
Precedence is:
CLI ARG > flag > env var > config file
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
5 years ago
Brian Goff
213d3af3b0
Add option to build/bake to override instance
...
This helps prevent race conditions with concurrent build invocations.
Signed-off-by: Brian Goff <cpuguy83@gmail.com>
5 years ago
Tonis Tiigi
4804824c78
separate manual and automatically detected platforms
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago
Tõnis Tiigi
d89e3f3014
Merge pull request #249 from tonistiigi/prune
...
add prune and du commands
5 years ago
Tõnis Tiigi
9ab9b852c2
Merge pull request #165 from tiborvass/pertarget-nocache
...
bake: allow overriding no-cache and pull per target via --set
5 years ago
Tibor Vass
2a257a8252
bake: allow overriding no-cache and pull per target via --set
...
Signed-off-by: Tibor Vass <tibor@docker.com>
5 years ago
Tõnis Tiigi
0e1f0e3c73
Merge pull request #164 from tiborvass/multitarget-set
...
bake: allow pattern matching for target names in --set
5 years ago
Tibor Vass
078b65905a
bake: add test cases for pattern matching
...
Signed-off-by: Tibor Vass <tibor@docker.com>
5 years ago
Tibor Vass
417f52e001
bake: add --load and --push shorthands for --set
...
Signed-off-by: Tibor Vass <tibor@docker.com>
5 years ago
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>
5 years ago
Tõnis Tiigi
721b63f3a0
Merge pull request #259 from tiborvass/fix-inherits-override
...
bake: fix override bug with inheritance
5 years ago
Tibor Vass
14e65ff3b4
bake: fix override+inheritance bug
...
Signed-off-by: Tibor Vass <tibor@docker.com>
5 years ago
Tibor Vass
3282dae09b
bake: add tests for override+inheritance bug
...
Signed-off-by: Tibor Vass <tibor@docker.com>
5 years ago
Sebastiaan van Stijn
7b297eb895
Merge pull request #251 from philips/patch-1
...
README: add mkdir for .docker/cli-plugins
5 years ago
Brandon Philips
bae6b1cec8
README: add mkdir for .docker/cli-plugins
...
this dir doesn't exist by default so add a mkdir
5 years ago
Tibor Vass
f4ac640252
Merge pull request #250 from tonistiigi/buildkit-bump
...
vendor: update buildkit to v0.7.0
5 years ago
Tonis Tiigi
7c627da986
vendor: update buildkit to v0.7.0
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago
Tonis Tiigi
d52f5db6ba
commands: add du command
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago
Tonis Tiigi
66672b4052
commands: add prune command
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
5 years ago