Talon Bowler
fe728e7780
update the lint subrequest call to error when a build error was encountered during linting
...
Signed-off-by: Talon Bowler <talon.bowler@docker.com>
(cherry picked from commit 927fb6731c2c53da85627a5c9acd93d5439fdb5e)
2024-06-18 09:36:37 -07:00
CrazyMax
5ac9b78384
test: build print
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-04-19 10:51:27 +02:00
CrazyMax
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
CrazyMax
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
CrazyMax
ffff87be03
build: fix stdin handling when building with controller
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-04-09 14:49:30 +02:00
Niklas Gehlen
ccc314a823
Implement new driver-opt: default-load
...
This eases build driver migrations, as it allows aligning the default behavior.
See also https://docs.docker.com/build/drivers/
Signed-off-by: Niklas Gehlen <niklas@namespacelabs.com>
2024-04-05 15:30:33 +02:00
CrazyMax
b61b29f603
tests: test with buildx experimental
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-04-04 19:32:20 +02:00
CrazyMax
15fd39ebec
tests: build secret
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-04-04 13:09:42 +02:00
CrazyMax
7cded6b33b
tests: build from stdin
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-04-02 15:10:18 +02:00
CrazyMax
e2be765e7b
tests: refactor worker handling in sandbox
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-03-14 13:42:37 +01:00
CrazyMax
9a2536dd0d
test: multi exporters
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-03-05 17:05:59 +01:00
CrazyMax
2edb7a04a9
build: set build ref in response
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-02-23 23:01:41 +01:00
CrazyMax
eedf9f10e8
test: build shm-size and ulimit
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-02-23 22:44:30 +01:00
CrazyMax
aa518f9b88
driver: test bridge network mode
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-02-22 23:07:50 +01:00
CrazyMax
5a466918f9
build: enhance error message for unsupported attestations
...
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2024-02-22 15:30:53 +01:00
CrazyMax
6c32a8c4c1
test: docker host-gateway
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-10-17 12:57:46 +02:00
David Karlsson
bf5a70023c
build: improve error messages for docker driver
...
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-09-12 09:39:51 +02:00
CrazyMax
73ea0826ca
build: validate build args and labels
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-09-11 16:56:50 +02:00
Justin Chadwell
a59058e8a5
build: add --annotation shortcut flag
...
This extracts the same logic for parsing annotations from the imagetools
create command, and allows the same flags to be attached to the build
command.
These annotations are then merged into all provided exporters.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-09-11 15:31:04 +01:00
Justin Chadwell
51b9bab245
Merge pull request #1987 from jedevc/vendor-buildkit-master-tests
2023-08-07 17:08:16 +01:00
Justin Chadwell
e206c585bb
build: error on attests on non-multiplatform driver
...
On drivers that do not support multi-platform builds (the default
`docker` driver), we do not support building attestations (unless using
the containerd store).
We need to check this feature before attempting to build using
attestations.
Also adds a test to ensure that attestations can be pushed to registries
at all, and that it adequately fails on the docker driver.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-08-04 15:28:32 +01:00
Justin Chadwell
4e7709e54c
vendor: update buildkit to master@b49a8873179b
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-08-04 12:00:18 +01:00
Justin Chadwell
5ed8f1b7d9
tests: avoid hardcoded driver check in testImageIDOutput
...
To detect if there is a docker daemon available, we can use the sandbox
.DockerAddress() function.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-08-04 11:22:10 +01:00
David Karlsson
b4c0941683
tests: add basic build progress test
...
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
2023-07-02 21:09:33 +02:00
CrazyMax
20d2501edc
test: build details output
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-06-30 13:48:02 +02:00
CrazyMax
c2500ea2d8
build: prefer local image resolution for docker driver
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-06-21 11:05:06 +02:00
CrazyMax
28a1eb3527
test: fix testImageIDOutput
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-06-20 17:04:21 +02:00
Justin Chadwell
c820350b5e
tests: refactor cmd helpers to allow configuring cwd, etc
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-06-06 17:17:03 +02:00
Justin Chadwell
d03e93f6f1
test: tmpdir can be a test helper
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-06-06 17:15:19 +02:00
Tonis Tiigi
68ae67720a
build: fix writing correct image ID with -q
...
Container driver wrote manifest digest that had a
mismatch with --iidfile output.
When --iidfile was set the --metadata-file was not
written.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2023-05-26 00:20:29 -07:00
Justin Chadwell
2d124e0ce9
test: add basic integration tests
...
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-05-18 14:26:12 +01:00