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>
This commit is contained in:
Jonathan A. Sternberg
2024-10-08 13:35:06 -05:00
parent d353f5f6ba
commit 64c5139ab6
109 changed files with 68070 additions and 2941 deletions

File diff suppressed because it is too large Load Diff

View File

@ -29,9 +29,9 @@ message PruneRequest {
bool all = 2;
int64 keepDuration = 3;
int64 minStorage = 5;
int64 maxStorage = 4;
int64 free = 6;
int64 reservedSpace = 4;
int64 maxUsedSpace = 5;
int64 minFreeSpace = 6;
}
message DiskUsageRequest {

View File

@ -2,7 +2,7 @@
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc v3.11.4
// source: control.proto
// source: github.com/moby/buildkit/api/services/control/control.proto
package moby_buildkit_v1
@ -423,5 +423,5 @@ var Control_ServiceDesc = grpc.ServiceDesc{
ServerStreams: true,
},
},
Metadata: "control.proto",
Metadata: "github.com/moby/buildkit/api/services/control/control.proto",
}

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +0,0 @@
package moby_buildkit_v1 //nolint:revive
//go:generate protoc -I=. -I=../../../vendor/ -I=../../../../../../ --go_out=paths=source_relative:. --go-grpc_out=paths=source_relative,require_unimplemented_servers=false:. control.proto