16 Commits
Author SHA1 Message Date
Ravi Arnan 92f2efe7a3 buildctl: read a valueless build-arg from the environment
--opt build-arg:FOO failed the whole build with "invalid value
build-arg:FOO" instead of taking FOO from the client environment, so
callers had to spell out --opt build-arg:FOO=$FOO. "docker buildx build
--build-arg FOO" reads the environment, and buildctl already propagates
SOURCE_DATE_EPOCH from the environment into a build arg in loadOptEnv,
so the valueless form was the odd one out.

Resolve it in ParseOpt rather than in attrMap: attrMap is shared with
--local, where a value is still required. A variable that is not present
in the environment is left out of the frontend attributes entirely
rather than sent as an empty string, so a default in the Dockerfile
still applies.

Signed-off-by: Ravi Arnan <raviarnankeren@gmail.com>
2026-08-13 21:41:04 +08:00
CrazyMax ef191af965 vendor: github.com/urfave/cli/v3 v3.9.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2026-06-10 10:12:36 +02:00
Tonis Tiigi 81e4095b13 solver: keep runtime load opts out of LLB digests
Apply proxy network as an explicit LLB mutation before digest recompute,
while keeping runtime load options such as platform normalization applied
when creating vertices.

This preserves distinct cache keys for proxy-network builds without
breaking gateway warning and source-map lookups that use the original LLB
digests from the frontend.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2026-06-04 11:23:02 -07:00
CrazyMax bc0c857973 buildkitd: handle device insecure entitlement
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-07-11 17:44:26 +02:00
Brian Goff 96447a83e2 Add support for raw mode in the SSH agent provider.
In fraw mode it just does a raw proxy on the connection.
There's no internal SSH agent or anything.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2025-06-03 09:03:07 -07:00
Gleb Nebolyubov 4077bb3c9f buildctl: fix tlsdir handling logic for cert-manager.io
`tldir` flag handling now properly handles the old logic and the new
logic for cert-manager.io without failing.

Improved error message when files are missing.

Co-authored-by: Gleb Nebolyubov <gleb.nebo@gmail.com>
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2025-04-28 13:28:05 -05:00
Tonis Tiigi cc442d7c25 docs: fix up named context docs
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-01-16 16:26:59 -08:00
Adrien Delorme 4494bf613b make docs
Signed-off-by: Adrien Delorme <azr@users.noreply.github.com>
2023-12-06 11:04:36 +01:00
Austin Vazquez d63fdc2d09 docs: update builtctl.md to fix markdown links and typo
Signed-off-by: Austin Vazquez <macedonv@amazon.com>
2023-11-17 14:38:25 -08:00
x893675 50990100c5 buildctl: Add insecure config for registry-auth-tlscontext flag
Signed-off-by: x893675 <x893675@icloud.com>
2023-11-16 11:25:25 +08:00
Reshen c873a3824c Update buildctl.md
Correcting local source comment so it matches the immediately preceding code example.

Signed-off-by: Reshen <reshen817@gmail.com>
2023-11-07 11:45:22 -08:00
njucjc 2bd8d76504 buildctl: Add configured TLS certificate to trust store when making calls to registry auth
Signed-off-by: njucjc <njucjc@gmail.com>
2023-09-14 14:28:38 +08:00
Jonathan A. Sternberg 37131781d7 progressui: adds a json output that shows raw events for the solver status
This adds an additional display output for the progress indicator to
support a json output. It refators the progressui package a bit to add a
new method that takes in a `SolveStatusDisplay`. This
`SolveStatusDisplay` can be created by the user using `NewDisplay` with
the various modes as input parameters.

The json output will print the raw events as JSON blobs. It will not
throttle the messages or limit the display. It is meant as a pure raw
marshaling of the underlying event stream.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2023-08-24 16:45:58 -05:00
Guilhem Charles 5d15e36f0e Add support for JSON formatted logs (#3133)
Signed-off-by: Guilhem Charles <guilhem.charles@gmail.com>
2023-07-25 07:15:30 +02:00
Dan DuvallandJustin Chadwell ef61bbe583 buildctl: Provide --wait option
Added `--wait` to buildctl's global options. See below for behavior.

Implemented a `Wait` client method that blocks until a successful
request has been made to the remote buildkit. This behavior is identical
as in buildx, and only makes additional ListWorker calls *if the user
has requested them*.

The timeout as requested using the `--timeout` option is additionally
applied here.

Co-authored-by: Justin Chadwell <me@jedevc.com>
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-06-29 10:54:58 +01:00
Justin Chadwell bb503ddd80 docs: add auto-generated sections to buildctl.md
Signed-off-by: Justin Chadwell <me@jedevc.com>
2023-03-27 16:23:50 +01:00