Jonathan A. Sternberg
d5ad869033
buildflags: fix ref only format for command line and bake
...
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
(cherry picked from commit 11c84973ef104e48eb88a41b5b23d6a559efe868)
2025-01-22 13:00:20 -08:00
Tonis Tiigi
1335264c9d
history: update formatting of error logs
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-01-17 08:54:38 -08:00
Tonis Tiigi
8c27b5c545
history: make sure started time is shown in current timezone
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-01-16 21:12:37 -08:00
Tonis Tiigi
f7594d484b
history: fix printing desktop URL
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-01-16 21:12:37 -08:00
Tonis Tiigi
f118749cdc
history: add error details to history inspect command
...
For failed builds, show the source with error location and last
logs for vertex that caused the error. When debug mode is on,
stacktrace is printed.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-01-16 21:12:17 -08:00
CrazyMax
b035a04aaa
history: update containerd imports to v2
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-01-15 17:22:05 +01:00
Tonis Tiigi
6220e0aae8
add history inspect attachment command
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-01-15 16:17:21 +01:00
Tonis Tiigi
d9abc78e8f
update history inspect formatting
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-01-15 16:17:21 +01:00
Tonis Tiigi
3313026961
add buildx history inspect formatting
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-01-15 16:17:20 +01:00
Tonis Tiigi
06912aa24c
Add buildx history command
...
These commands allow working with build records
of completed and running builds.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2025-01-15 16:17:20 +01:00
CrazyMax
ac636fd2d8
docs: missing quiet progress mode
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-01-13 15:13:18 +01:00
CrazyMax
11c85b2369
bake: list flag json format support
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-01-09 17:07:06 +01:00
CrazyMax
41215835cf
bake: print and list flag mutually exclusive
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-01-09 17:07:05 +01:00
CrazyMax
a41fc81796
bake: replace list-targets and list-variables flags with list=<type>
...
also put this flag out of experimental
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-01-09 17:07:05 +01:00
Tonis Tiigi
dd596d6542
bake: allow entitlements from overrides automatically
...
If override specifies a path, mark it automatically allowed
so there is no need to use duplicate flags for defining the
same feature.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-12-02 17:16:28 -08:00
Tonis Tiigi
9a7b028bab
bake: add fs entitlements for context paths
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-11-21 14:05:11 +01:00
Tonis Tiigi
1af4f05ba4
bake: add filesystem entitlements support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-11-21 14:05:11 +01:00
CrazyMax
e04da86aca
fix golangci-lint issues
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-11-20 11:20:17 +01:00
Tonis Tiigi
e7a53fb829
lint: enable forbidigo context rules
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-11-19 18:27:25 -08:00
Tonis Tiigi
c0fd64f4f8
lint: enable linters from buildkit
...
Skipping errname and testifylint
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-11-19 17:51:24 -08:00
Tonis Tiigi
f216b71ad2
lint: enable gosimple
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-11-19 17:39:22 -08:00
Laurent Goderre
be6d8326a8
Add ability to output json lists in metadata build file
...
Signed-off-by: Laurent Goderre <laurent.goderre@docker.com>
2024-11-11 16:36:45 -05:00
Tonis Tiigi
9f3a578149
prune: detect if buildkit supports newer storage filters
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-10-29 13:18:04 -07:00
Tim Neumann
0fd935b0ca
Skip Builder Init For Bake List Flags
...
Add the flags --list-targets and --list-variables to the cases
where initializing the builder can be skipped.
This allows the listing of targets and variables
when no builder is available.
Resolves : docker/buildx#2755
Signed-off-by: Tim Neumann <git@neumann-tim.de>
2024-10-29 10:34:20 +01:00
CrazyMax
886ae21e93
build: don't generate local state for subrequests
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-10-25 11:06:25 +02:00
Tõnis Tiigi
746eadd16e
Merge pull request #2745 from crazy-max/detect-sudo
...
config: fix file/folder ownership
2024-10-23 10:04:38 -07:00
CrazyMax
f89f861999
config: fix file/folder ownership
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-10-23 18:23:14 +02:00
CrazyMax
cc286e2ef5
cli: error out on unknown command
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-10-18 14:04:16 +02:00
Jonathan A. Sternberg
64c5139ab6
hack: generate vtproto files for buildx
...
Integrates vtproto into buildx. The generated files dockerfile has been
modified to copy the buildkit equivalent file to ensure files are laid
out in the appropriate way for imports.
An import has also been included to change the grpc codec to the version
in buildkit that supports vtproto. This will allow buildx to utilize the
speed and memory improvements from that.
Also updates the gc control options for prune.
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2024-10-08 13:35:06 -05:00
CrazyMax
f6a27a664b
ls: ensure deterministic output for truncated platforms
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-10-04 09:27:03 +02:00
Tõnis Tiigi
7c91f3d0dd
Merge pull request #2138 from crazy-max/ls-notrunc
...
ls: no-trunc opt
2024-10-03 08:21:09 -07:00
CrazyMax
820f5e77ed
ls: no-trunc opt
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-10-03 11:15:46 +02:00
Jonathan A. Sternberg
b35a0f4718
protobuf: remove gogoproto
...
Removes gogo/protobuf from buildx and updates to a version of
moby/buildkit where gogo is removed.
This also changes how the proto files are generated. This is because
newer versions of protobuf are more strict about name conflicts. If two
files have the same name (even if they are relative paths) and are used
in different protoc commands, they'll conflict in the registry.
Since protobuf file generation doesn't work very well with
`paths=source_relative`, this removes the `go:generate` expression and
just relies on the dockerfile to perform the generation.
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2024-10-02 15:51:59 -05:00
Tõnis Tiigi
f102ad73a8
Merge pull request #2672 from daghack/dockerfile-path-on-warnings
...
build: display Dockerfile path on check warnings
2024-09-19 08:30:48 -07:00
Talon Bowler
671bd1b54d
Update to pass DockerMappingSrc and Dst in with Inputs, and return Inputs through Build
...
Signed-off-by: Talon Bowler <talon.bowler@docker.com>
2024-09-18 20:56:31 -07:00
CrazyMax
528181c759
inspect: display buildkit daemon configuration file
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-09-12 00:16:24 +02:00
Talon Bowler
f1b92e9e6c
update Build commands to return dockerfile mapping for use in printing rule check warnings
...
Signed-off-by: Talon Bowler <talon.bowler@docker.com>
2024-09-06 07:34:13 -07:00
CrazyMax
7c481aae20
fix lint.PrintLintViolations signature change
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-09-04 18:44:07 +02:00
Tõnis Tiigi
f369377d74
Merge pull request #2666 from tonistiigi/bake-entitlements
...
bake: enable support for entitlements
2024-09-03 10:49:48 -07:00
Tõnis Tiigi
b7486e5cd5
Merge pull request #2647 from daghack/print-warning-count
...
build: print out the number of warnings after completing a rule check
2024-09-03 10:22:46 -07:00
Tonis Tiigi
203fd8aee5
bake: enable support for entitlements
...
Add support for security.insecure and network.host
entitlements via bake. User needs to confirm elevated
privileges through a prompt or CLI flags.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-08-30 09:33:28 -07:00
Talon Bowler
806ccd3545
print out the number of warnings after completing a rule check
...
Signed-off-by: Talon Bowler <talon.bowler@docker.com>
2024-08-29 07:07:19 -07:00
Tonis Tiigi
7a7a9c8e01
commands: add debug as persistent flag
...
Allows using `--debug` to enable debug logging under
any subcommand. Currently it needed to be set as
`docker --debug buildx` meaning only way to enable debug
in standalone mode was to set env variable instead and
updating existing commands to add `--debug` was cumbersome.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-08-16 13:20:28 +03:00
CrazyMax
d03c13b947
chore: rename PrintFunc to CallFunc
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-08-13 14:13:32 +02:00
CrazyMax
6467a86427
Merge pull request #2610 from jsternberg/bake-metrics
...
metrics: add metrics for bake command
2024-08-09 10:05:05 +02:00
Jonathan A. Sternberg
58571ff6d6
metrics: add metrics for bake command
...
This adds metrics for the bake command using a different method of
calculating the build identifier but with the same attributes otherwise.
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2024-08-08 10:00:11 -05:00
CrazyMax
531c6d4ff1
support metadata file with call flag for build and bake commands
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-08-08 10:50:37 +02:00
CrazyMax
64171cb13e
bake: fix printer handling
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-07-24 19:54:11 +02:00
Tõnis Tiigi
738f5ee9db
Merge pull request #2612 from daghack/debug-msg-clarification
...
update warning message
2024-07-18 09:16:39 -07:00
CrazyMax
7823a2dc01
bake: check printer before printing warnings
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-07-18 17:40:07 +02:00