David Karlsson
d0a9a81e2e
bake: improve error message for empty definition
...
Closes #2095
Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com >
2023-10-31 15:36:50 +01:00
CrazyMax
23c2498dee
bake: display read definition files in build output
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-10-23 16:26:18 +02:00
CrazyMax
7497e6481e
bake: deny access to local dockerfile for remote invocation with local context
...
we don't currently support reading a remote Dockerfile with a local
context when doing a remote invocation because we automatically derive
the dockerfile from the context atm. To avoid mistakenly reading a local
Dockerfile, we check if the Dockerfile exists locally and if so, we
error out.
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-10-19 17:41:05 +02:00
CrazyMax
de9d253f45
bake: local dockerfile support for remote definition
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2023-10-19 17:41:05 +02:00
Justin Chadwell
0dcbed3f53
tests: add simple local bake test
...
Signed-off-by: Justin Chadwell <me@jedevc.com >
2023-06-27 11:16:44 +01:00
Justin Chadwell
d34103b0d9
bake: fix potential context entitlements escape
...
Signed-off-by: Justin Chadwell <me@jedevc.com >
2023-06-06 17:17:03 +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
61a7854659
tests: add bake test for remote subdir context
...
Fixed in 12b6a3ad9a
, but now we have
regression tests! So we can add a check that we don't break this
behavior again.
Signed-off-by: Justin Chadwell <me@jedevc.com >
2023-06-06 17:15:19 +02:00
Justin Chadwell
e859ebc12e
tests: add bake test for remote cmd context override
...
Signed-off-by: Justin Chadwell <me@jedevc.com >
2023-06-06 17:15:19 +02:00
Justin Chadwell
ef997fd6d0
bake: fix BAKE_CMD_CONTEXT relative path resolution
...
Signed-off-by: Justin Chadwell <me@jedevc.com >
2023-06-06 17:15:19 +02:00
Justin Chadwell
76c96347ff
tests: add basic remote bake context test
...
Signed-off-by: Justin Chadwell <me@jedevc.com >
2023-06-06 17:15:19 +02:00