e75ac22ba6
buildflags: skip empty cache entries when parsing
...
Broken in 11c84973ef
. The section to skip
an empty input was accidentally removed when some code was refactored to
fix a separate issue.
This skips empty cache entries which allows disabling the `cache-from` and
`cache-to` entries from the command line overrides.
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com >
2025-02-24 10:09:02 -06:00
44fa243d58
vendor: update buildkit to v0.19.0-rc1
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2025-01-14 14:24:38 -08:00
ada44e82ea
Merge pull request #2900 from crazy-max/bake-list-flag
...
bake: replace --list-targets and --list-variables flags with --list flag
2025-01-10 07:59:28 -08:00
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
5f057bdee7
bake: fix entitlements check for default SSH socket
...
There was a mixup between fs.read and ssh entitlements check.
Corrected behavior is that if bake definition requires default
SSH forwarding then "ssh" entitlement is needed. If it requires
SSH forwarding via fixed file path then "fs.read" entitlement is
needed for that path.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2025-01-08 18:19:18 -08:00
5dd4ae0335
bake: various fixes for composable attributes
...
This changes how the composable attributes are implemented and provides
various fixes to the first iteration.
Cache-from and cache-to now no longer print sensitive values that are
automatically added. These automatically added attributes are added when
the protobuf is created rather than at the time of parsing so they will
no longer be printed. If they are part of the original configuration
file, they will still be printed.
Empty strings will now be skipped. This was the original behavior and
composable attributes removed this functionality accidentally. This
functionality is now restored.
This also expands the available syntax that works with each of the
composable attributes. It is now possible to interleave the csv syntax
with the object syntax without any problems. The canonical form is still
the object syntax and variables are resolved according to that syntax.
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com >
2024-12-18 10:26:15 -06:00
a53ed0a354
add additional test coverage for FS entitlement paths
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-12-16 22:29:35 -08:00
9a7b028bab
bake: add fs entitlements for context paths
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-11-21 14:05:11 +01:00
d2c512a95b
lint: enable testifylint
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-11-20 10:53:11 -08:00
5937ba0e00
Merge pull request #2307 from crazy-max/test-docker-multi-ver
...
tests: handle multiple docker versions
2024-11-20 09:53:57 -08:00
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
a69d857b8a
tests: handle multiple docker versions
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-11-20 00:59:09 +01:00
48977780ad
bake: check for empty build network with compose
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-11-14 19:27:54 +01:00
1060328a96
build: fix build details link in experimental mode
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-10-23 20:31:17 +02:00
746eadd16e
Merge pull request #2745 from crazy-max/detect-sudo
...
config: fix file/folder ownership
2024-10-23 10:04:38 -07:00
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
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
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
df0270d0cc
test: fix missing envs when cleaning up some workers
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-09-13 14:19:46 +02:00
604b723007
Merge pull request #2684 from crazy-max/inspect-buildkitd-conf
...
inspect: display buildkit daemon configuration file
2024-09-11 17:32:25 -07:00
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
9fb8b04b64
bake: fix missing omitempty and optional tags for network field
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-09-11 14:47:01 +02:00
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
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
36cd88f8ca
build: skip build ref and provenance metadata for subrequests
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-08-13 10:40:40 +02:00
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
56df4e98a0
tests: build multiplatform
...
Signed-off-by: idnandre <andre@idntimes.com >
2024-07-20 17:15:00 +07:00
bd0b425734
test: bake print
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-07-18 17:40:08 +02:00
0f74f9a794
bake: fix testing json formatted output
...
Because the test checked for combinedoutput, it
could contain internal warning messages in stderr.
JSON output is guaranteed in stdout.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-08 18:32:37 -07:00
35313e865f
bake: add tests for call and list
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-03 09:54:03 -07:00
7b80ad7069
Merge pull request #2569 from dvdksn/fix-alias
...
fix: buildx b alias
2024-07-03 10:14:45 +02:00
2e7e7abe42
test: add test for building with alias "buildx b"
...
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com >
2024-07-03 10:04:09 +02:00
f374f64d2f
vendor: update buildkit to f7bda278b7e2
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-02 22:24:55 -07:00
cfb7fc4fb5
build: fix localstate for remote context and stdin
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-06-28 14:56:45 +02:00
d4b112ab05
test: build remote
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-06-28 11:06:09 +02:00
01a50aac42
printer: dedup warnings
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-06-26 06:53:35 +02:00
f7bcafed21
build: opt to set progress warnings in response
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-06-26 06:53:35 +02:00
8ca18dee2d
Merge pull request #2518 from daghack/handle-build-err-during-lint-request
...
update the lint subrequest call to error
2024-06-14 19:44:13 -07:00
e423d096a6
Merge pull request #2508 from crazy-max/integration-tests-coverage
...
test: setup integration tests coverage
2024-06-13 10:10:32 -07:00
927fb6731c
update the lint subrequest call to error when a build error was encountered during linting
...
Signed-off-by: Talon Bowler <talon.bowler@docker.com >
2024-06-13 09:47:05 -07:00
6d5823beb1
test: setup integration tests coverage
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-06-12 08:46:49 +02:00
9de95d81eb
test: align build call tests
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-06-11 20:07:23 +02:00
9a30215886
tests: avoid early shutdown of sandbox
...
Because sandbox is closed down when the main test
that created the sandbox returns it can't have subtests
that set themselves as parallel as they would continue
to run in a different lifecycle.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-05-31 17:38:32 -07:00
117c9016e1
Updated tests further to make sure the new flag doesn't affect copy an index regardless of what value you specify.
...
Signed-off-by: Tim Smith <tismith@rvohealth.com >
2024-05-29 21:56:22 -04:00
388af3576a
Updated tests to test new --prefer-index flag
...
Signed-off-by: Tim Smith <tismith@rvohealth.com >
2024-05-29 21:39:14 -04:00
0808747add
Added application/vnd.docker.distribution.manifest.v2+json mediatype to the list of mediatypes we return the original bytes for when calling *Resolver.Combine rather than adding it to a newly created manifest list
...
Signed-off-by: Tim Smith <tismith@rvohealth.com >
2024-05-28 23:01:14 -04:00
6112c41637
lint: nilness fixes
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-04-24 17:19:32 -07:00
5ac9b78384
test: build print
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-04-19 10:51:27 +02:00
2e2f9f571f
build: set record provenance in response
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-04-11 10:11:27 +02:00
dd4d52407f
tests: skip according to buildkit version constraint
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com >
2024-04-11 09:43:14 +02:00