8c47277141
store: set nodegroup last activity
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-12-08 19:49:51 +01:00
b270a20274
build: add attests flag and sbom/provenance shorthands
...
Signed-off-by: Justin Chadwell <me@jedevc.com >
2022-12-07 18:44:11 +00:00
0c0c9a0030
chore: sort buildOptions alphabetically
...
Signed-off-by: Justin Chadwell <me@jedevc.com >
2022-12-07 16:10:54 +00:00
e7b5ee7518
mutualize builder logic
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-12-06 12:13:41 +01:00
63073b65c0
dockerutil pkg to manage docker api client and context
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-12-06 12:13:41 +01:00
a50e89c38e
progress: explicitly fail if tty requested but not available
...
The NewPrinter function is mostly borrowed from buildkit. However, at
some point, it seems that the implementations drifted.
This patch updates buildx to be more similar in behavior to it's
buildkit counterpart, specifically, it will explicitly fail if a TTY
output is requested using "--progress=tty", but the output is not
available.
To gracefully fallback to plain progress in this scenario,
"--progress=plain" is required.
Signed-off-by: Justin Chadwell <me@jedevc.com >
2022-10-25 10:55:36 +01:00
a4c3efe783
lint: add nolintlint and fix violations
...
We should be able to detect nolint comments that point to linters that
are disabled (such as with the removed structcheck).
Signed-off-by: Justin Chadwell <me@jedevc.com >
2022-10-20 09:49:51 +01:00
966c4d4e14
invoke: load defaults from image config
...
If user does not specify image certain container parameters, we can load
them from the exporter metadata.
Additionally, we introduce a new "default" value for the --invoke flag,
that keeps all of the default parameters (since cobra does not have an
easy way of accepting an optional flag argument).
Signed-off-by: Justin Chadwell <me@jedevc.com >
2022-09-21 11:43:52 +01:00
d01d394a2b
build: ensure consistent help messages for experimental cli help
...
Append an [experimental] tag to the end of each experimental command to
highlight that these are experimental options. Square brackets are used
instead of parentheses as parentheses are already in use to highlight
examples and defaults.
Signed-off-by: Justin Chadwell <me@jedevc.com >
2022-08-16 11:07:36 +01:00
fb5e1393a4
commands: use buildx env for experimental opt-in
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-08-16 10:37:56 +01:00
c834ba1389
add formatting support to print function
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-08-09 08:24:59 -07:00
eefa8188e1
build: add experimental support for print flag
...
Print flag can be used to make additional information
requests about the build and print their results.
Currently Dockerfile supports: outline, targets, subrequests.describe
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-08-09 08:24:52 -07:00
2f9d46ce27
invoke: add messages
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2022-08-08 17:35:28 +09:00
3b4780ef19
vendor: bump buildkit to master
...
Signed-off-by: Justin Chadwell <me@jedevc.com >
2022-07-06 09:47:29 +01:00
387e1ecca6
Add --invoke
option to launch a container from the build result
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2022-06-21 10:32:07 +09:00
94c5dde85a
docs: small fixes
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-02-26 05:39:42 +01:00
6ac01ec9ac
Merge pull request #965 from tonistiigi/bake-context-validation
...
bake: additional support for named context on remote inputs
2022-02-25 11:36:51 -08:00
280c008f81
bake: make named contexts relative to remote bake input
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-02-24 23:19:12 -08:00
b5bf28d722
bake: use better error in named contexts not supported
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-02-22 21:56:52 -08:00
230dfa96a3
docs: built-in build args
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-02-17 17:52:49 +01:00
eef6deb7c2
Merge pull request #860 from tonistiigi/no-cache-filter
...
build: add no-cache-filter
2022-02-11 20:09:40 -08:00
e5f590a7fa
Merge pull request #946 from crazy-max/metadata-output
...
build: enhance metadata json output
2022-02-10 23:59:23 -08:00
299fd19c49
build: enhance metadata json output
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-02-11 08:16:42 +01:00
eb8057e8e0
forbid setting no-cache and no-cache-filter together
...
Per review request.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-02-10 22:01:50 -08:00
3b47722032
build: add no-cache-filter
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-02-10 22:00:02 -08:00
b39ebab666
docs: secret usage examples
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-02-10 15:37:11 +01:00
2d7540fb0a
Separate io.Writer from console.File for NewPrinter
...
Signed-off-by: Edgar Lee <edgarl@netflix.com >
2022-02-06 09:11:47 -08:00
f37c253ae4
commands: provide more helpful error when —build-context is not supported
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-01-07 18:32:37 -08:00
d77e2453da
commands: rename context flag to build-context
...
Avoid conflicts with docker context
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-01-07 18:31:32 -08:00
de6b04d726
build: add support for named contexts
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-01-04 22:55:12 -08:00
ed4103ef52
commands: build summary of warnings on build
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-12-19 22:32:59 -08:00
cc2a879660
commands: clean up unnecessary code
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-11-22 23:57:42 -08:00
a0a7db127c
cli: fix flags usage
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-11-22 10:51:59 +01:00
88d0775692
refactor accessing registry configs via drivers
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-11-04 10:01:23 -07:00
aa52a5a699
build: set local sharedkey per project basename
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-10-29 21:29:04 -07:00
dd15969c93
build: add cgroup-parent support
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-10-28 19:34:47 +02:00
25d2f73858
build: warning on deprecated flags
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-10-26 21:36:49 +02:00
36a37a624e
refactor: flags lexical order
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-10-26 13:11:28 +02:00
8e5595b7c7
build: add shm-size support
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-10-19 21:06:01 +02:00
b89e2f35df
build: add ulimit support
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-10-15 16:03:49 +02:00
9e62c9f074
Fix --driver flag usage markdown output
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-09-29 15:33:44 +02:00
b05c313204
Merge pull request #740 from bossmc/support-quiet
...
Implement `--quiet` support
2021-09-03 11:00:26 -07:00
8a12884814
Fix flags usage markdown output
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-09-03 11:52:49 +02:00
ef3e46fd62
Move printing to stdout up to the command itself
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com >
2021-08-20 15:13:23 +01:00
c19c018a4c
Implement --quiet
support
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com >
2021-08-20 15:13:13 +01:00
3d1ab82dc6
Duplicated progress env var
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-07-25 12:40:13 +02:00
9d88450118
enable opentelemetry support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-07-12 13:42:52 -07:00
1253020b3d
Add metadata-file flag
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-06-30 07:41:26 +02:00
399df854ea
build: split buildflags package
...
Planned to be imported by nerdctl in future.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2021-04-12 14:36:56 +09:00
eec843a325
include default ssh socket when given an ssh-based git url
...
Signed-off-by: Alex Couture-Beil <alex@earthly.dev >
2021-04-01 11:25:18 -07:00