Commit Graph

1036 Commits (1223e759a4931866ffbb587727f8acee8287ee12)
 

Author SHA1 Message Date
Tõnis Tiigi 1223e759a4
Merge pull request from jedevc/fixup-1273
Prevent duplicate "failed to find driver" message
Tõnis Tiigi 4fd3ec1a50
Merge pull request from crazy-max/fix-compose-merge
bake(compose): fix unskipped services without build context
Justin Chadwell 7f9cad1e4e buildx: prevent duplicate "failed to find driver" message
Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 9c22be5d9c
bake: test compose file validation
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 42dea89247
bake: test for unknown extensions
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 982a332679
bake(compose): fix unskipped services without build context
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Justin Chadwell 441853f189
Merge pull request from jedevc/consistent-experimental-help
Consistent experimental help
Tõnis Tiigi 611329fc7f
Merge pull request from jedevc/fix-1269
create: improve interface when attempting to create docker driver
Tõnis Tiigi f3c135e583
Merge pull request from tonistiigi/update-buildx-220816
vendor: update buildkit to 55ba9d14
Tonis Tiigi 7f84582b37 vendor: update buildkit to 55ba9d14
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Justin Chadwell 297526c49d docs: add experimental options to build command reference
Signed-off-by: Justin Chadwell <me@jedevc.com>
Justin Chadwell d01d394a2b build: ensure consistent help messages for experimental cli help
Append an [experimental] tag to the end of each experimental command to
highlight that these are experimental options. Square brackets are used
instead of parentheses as parentheses are already in use to highlight
examples and defaults.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Justin Chadwell 17d4369866 create: improve interface when attempting to create docker driver
Previously, the help information for buildx indicated that users could
create a new instance of the docker driver - which is explicitly
something we don't support, driver of this form are automatically
derived from the available list of docker contexts.

This patch ensures that don't have AllowsInstance set will not appear in
the help text, and additionally provide a new more specific error
message instead of the generic "failed to find driver". This should help
point users in the correct direction.

Signed-off-by: Justin Chadwell <me@jedevc.com>
Tonis Tiigi fb5e1393a4 commands: use buildx env for experimental opt-in
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi 18dbde9ed6 build: update outline fallback image
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tõnis Tiigi da1f4b8496
Merge pull request from tonistiigi/print-outline
Build: Support for printing outline/targets of the current build
Tõnis Tiigi 5b2e1d3ce4
Merge pull request from crazy-max/bake-env
bake: load .env file from working dir for compose files
CrazyMax 7d8a6bc1d7
bake: load .env file from working dir for compose files
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax a378f8095e
test: misplaced expected value in assert
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi 005bc009e8
Merge pull request from tonistiigi/docker-driver-features
enable other exporters if docker driver uses containerd
Tonis Tiigi 3bc7d4bec6 enable other exporters if docker driver uses containerd
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tõnis Tiigi 96c1b05238
Merge pull request from tonistiigi/invoke-release
build: fix issues with leaving invoke containers running
CrazyMax 98f9f806f3
Merge pull request from ndeloof/moby-containerd
detect moby worker supports multiplatform feature through containerd snapshotter
Tonis Tiigi c834ba1389 add formatting support to print function
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi cab437adef build: add fallback to outline requests if not supported by frontend
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tonis Tiigi eefa8188e1 build: add experimental support for print flag
Print flag can be used to make additional information
requests about the build and print their results.

Currently Dockerfile supports: outline, targets, subrequests.describe

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Nicolas De Loof 1d8db8a738
detect moby worker supports multiplatform feature through containerd snapshotter
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
Tonis Tiigi 75ddc5b811 build: fix issues with leaving invoke containers running
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
Tõnis Tiigi 17dc0e1108
Merge pull request from ktock/invoke-messages
invoke: add messages
Tõnis Tiigi 64ac6c9621
Merge pull request from crazy-max/x-bake-miss
bake: contexts support with x-bake
CrazyMax a7753ea781
Merge pull request from jedevc/prune-all-help
docs: add correct definition of prune --all flag
Justin Chadwell 12a6eb5b22 docs: add correct definition of prune --all flag
The previous definition was the same as the docker images prune command
and referenced dangling images, which isn't what the command does. This
commit brings the command description more inline with the buildctl
definition.

Additionally, add some more description of what the various flags do in
our reference pages.

Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 74b21258b6
Merge pull request from jedevc/prune-filter-until
Fix prune `--filter until=<duration>` option
Kohei Tokunaga 2f9d46ce27 invoke: add messages
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
Tõnis Tiigi 7b660c4e30
Merge pull request from jedevc/driver-opt-warnings
Introduce new errors for unsupported driver behaviors
Justin Chadwell 406799eb1c prune: cleanup variable names for clarity
Signed-off-by: Justin Chadwell <me@jedevc.com>
Justin Chadwell ef0cbf20f4 buildx: warn on editing nodes
Previously, editing nodes to contain a new set of driver options or
config files was unsupported, and silently dropping them. In this patch,
we update with these, as well as add a new warning message that any new
options may not taken into account until the builder restarts (which
may apply to the flags, platforms and endpoints as well).

Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax 7f572eb044
bake: contexts support with x-bake
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax 18023d7f32
Merge pull request from thaJeztah/test_cli_update
vendor: v20.10.3-0.20220803220330-418ca3b4d46f (v22.06.0-dev)
Sebastiaan van Stijn 4983b98005
vendor: v20.10.3-0.20220803220330-418ca3b4d46f (v22.06.0-dev)
full diff: f1615facb1...418ca3b4d4

relevant changes;

- cli/command: remove unused args from ResolveDefaultContext()
- consider empty DOCKER_HOST and DOCKER_CONTEXT env-vars equivalent to "not set"
- cli: set timeout connection ping on sockets as well

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Tõnis Tiigi 8675e02cea
Merge pull request from crazy-max/improve-ci
ci: enhanced build workflow
CrazyMax 45fc3bf842
ci: enhanced build workflow
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi cf809aec47
Merge pull request from crazy-max/validate-docs-upstream
ci: upstream docs conformance validation
CrazyMax cceb1acca8
docs: fix dead link to color output controls guide
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
CrazyMax e620c40a14
ci: upstream docs conformance validation
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Tõnis Tiigi e1590bf68b
Merge pull request from tonistiigi/add-jedevc
add jedevc to maintainers
CrazyMax bad07943b5
Merge pull request from crazy-max/docs-pr-on-released
ci: open pr on docs repo only on release
CrazyMax 603595559f
Merge pull request from crazy-max/update-compose
update github.com/compose-spec/compose-go to v1.4.0
Justin Chadwell febcc25d1a prune: fix filter until option
Previously, when specifying the filter option with the until value, no
cache would be cleaned, preventing users from clearing by time. This bug
arises from passing the until field through into buildkit, where, on
filtering, a non-existent field returns false for a match.

The fix is simple, as we build up our list of filters to pass to
buildkit, we skip over the until key, so create a valid list of filters
for buildkit.

Signed-off-by: Justin Chadwell <me@jedevc.com>
CrazyMax e3c0e34b33
update github.com/compose-spec/compose-go to v1.4.0
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>