Tonis Tiigi
7a7a9c8e01
commands: add debug as persistent flag
...
Allows using `--debug` to enable debug logging under
any subcommand. Currently it needed to be set as
`docker --debug buildx` meaning only way to enable debug
in standalone mode was to set env variable instead and
updating existing commands to add `--debug` was cumbersome.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-08-16 13:20:28 +03:00
Tõnis Tiigi and GitHub
8411a763d9
Merge pull request #2657 from jsternberg/metricwriter-race-condition
...
metrics: add mutex to the metric writer
2024-08-14 19:23:51 +03:00
Tõnis Tiigi and GitHub
0e64eb4f8b
Merge pull request #2651 from tonistiigi/bake-wrap-target-name
...
build: when building multiple targets include name in error
2024-08-14 13:19:26 +03:00
Tõnis Tiigi and GitHub
4787b5c046
Merge pull request #2649 from tonistiigi/bake-path-stdlib-functions
...
bake: add basename, dirname and sanitize functions
2024-08-13 13:15:12 +03:00
Tõnis Tiigi and GitHub
1c66f293c7
Merge pull request #2650 from crazy-max/fix-subrequest-metadatafile
...
build: skip build ref and provenance metadata for subrequests
2024-08-13 13:13:35 +03:00
Tonis Tiigi
246a36d463
build: when building multiple targets include name in error
...
Some errors can appear without a stacktrace or progress record,
eg. wrong Dockerfile name passed. In that case when building many
targets with bake it might be hard to figure out which target
failed as in the progressbar there will only be steps that
were cancelled.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-08-13 12:21:30 +03:00
Tonis Tiigi
a4adae3d6b
bake: add basename, dirname and sanitize functions
...
These functions help with dealing with path inputs and
using parts of them to configure targets.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-08-13 11:46:04 +03:00
Tõnis Tiigi and GitHub
cdd46af015
Merge pull request #2608 from crazy-max/bake-fix-printer
...
bake: fix printer handling
2024-07-24 11:04:09 -07:00
Tonis Tiigi
b62d64b2b5
bake: use shared session for local sources for multiple targets
...
Detect cases where multiple bake targets would use the same
local source. For such cases a separate session request is
made in addition to session per target and local source
is made available in that source as well.
The new sessionID is sent with the request so the frontend
can ask associate it with the local source it needs.
The sources are still available in the main request session
as well. This would be used if frontend ignores the local-sessionid
parameter and makes sure that old version continue working.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-24 10:58:13 -07:00
Tõnis Tiigi and GitHub
f28dff7598
Merge pull request #2599 from thaJeztah/bump_docker_deps
...
vendor: update indirect dependencies for docker/cli
2024-07-24 10:52:57 -07:00
Tõnis Tiigi and GitHub
3d542f3d31
Merge pull request #2601 from tonistiigi/init-fixes
...
Improvements based on inittrace
2024-07-24 10:52:25 -07:00
Tõnis Tiigi and GitHub
30dbdcfa3e
Merge pull request #2607 from tonistiigi/locals-git-refactor
...
build: refactor setting git info to local mounts
2024-07-24 10:52:05 -07:00
Tõnis Tiigi and GitHub
16518091cd
Merge pull request #2600 from blampe/blampe/build-config
...
build: don't force default configuration
2024-07-24 10:51:53 -07:00
Tõnis Tiigi and GitHub
897fc91802
Merge pull request #2625 from ndeloof/bump-compose-v2.29.1
...
Bump compose-go v2.1.5
2024-07-23 14:00:00 -07:00
Tõnis Tiigi and GitHub
738f5ee9db
Merge pull request #2612 from daghack/debug-msg-clarification
...
update warning message
2024-07-18 09:16:39 -07:00
Tõnis Tiigi and GitHub
9b49cf3ae6
Merge pull request #2603 from crazy-max/bake-fix-progress-panic
...
bake: check printer before printing warnings
2024-07-18 08:59:42 -07:00
Tonis Tiigi
d8f26f79ed
build: refactor setting git info to local mounts
...
This is a preparation to shared local sources for bake
targets and makes it possible to have equality check
between locals from different targets.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-16 21:50:06 -07:00
Tonis Tiigi
96509847b9
remote: avoid signal names map on init
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-15 16:40:06 -07:00
Tonis Tiigi
52bb668085
remoteutil: fix pkg remove unnecessary map initialization
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-15 16:39:58 -07:00
Tonis Tiigi
85cf3bace9
hclparser: avoid unnecessary allocations in init
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-15 13:37:33 -07:00
Tonis Tiigi
b92bfb53d2
update errors handling allocations and comparison
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-15 13:37:23 -07:00
Tonis Tiigi
0d37d68efd
fix issues in .golangci.yml and add validation check
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-12 16:18:42 -07:00
Tonis Tiigi
03a691a0a5
vendor: update docker/distribution to v2.8.3
...
Gets rid of duplicate reference package
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-11 17:43:41 -07:00
Tõnis Tiigi and GitHub
fa392a2dca
Merge pull request #2589 from tonistiigi/vendor-buildkit-v0.15.0
...
vendor: update buildkit to v0.15.0
2024-07-11 11:35:41 -07:00
Tonis Tiigi
470e45e599
vendor: update buildkit to v0.15.0
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-11 11:23:39 -07:00
Tõnis Tiigi and GitHub
2a2648b1db
Merge pull request #2588 from tonistiigi/vendor-buildkit-v0.15.0-rc2
...
vendor: update buildkit to v0.15.0-rc2
2024-07-10 15:35:25 -07:00
Tonis Tiigi
ac930bda69
vendor: update buildkit to v0.15.0-rc2
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-10 15:03:14 -07:00
Tõnis Tiigi and GitHub
6791ecb628
Merge pull request #2587 from tonistiigi/update-moby-27.0.3
...
Dockerfile: update moby for testing to v27.0.3
2024-07-10 13:06:16 -07:00
Tonis Tiigi
d717237e4f
Dockerfile: update moby for testing to v27.0.3
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-10 11:16:38 -07:00
Tõnis Tiigi and GitHub
ee642ecc4c
Merge pull request #2578 from crazy-max/driver-client-opt
...
driver: allow arbitrary client opts
2024-07-10 09:55:15 -07:00
Tõnis Tiigi and GitHub
06d96d665e
Merge pull request #2584 from tonistiigi/bake-test-fix
...
bake: fix testing json formatted output
2024-07-09 12:40:51 -07:00
Tõnis Tiigi and GitHub
dc83501a5b
Merge pull request #2583 from tonistiigi/bake-implicit-cacheonly
...
bake: use cacheonly exporter for implicit targets
2024-07-09 12:40:21 -07:00
Tonis Tiigi
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
Tonis Tiigi
6d6adc11a1
bake: use cacheonly exporter for implicit targets
...
Clearing the exporter may result in default export
behavior from the driver.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-08 17:53:52 -07:00
Tõnis Tiigi and GitHub
68076909b9
Merge pull request #2579 from crazy-max/fix-compose-project-name
...
bake: use compose project name from env if set
2024-07-08 11:20:42 -07:00
Tõnis Tiigi and GitHub
b96ad59f64
Merge pull request #2577 from tonistiigi/vendor-buildkit-v0.15.0-rc1
...
vendor: update buildkit to v0.15.0-rc1
2024-07-03 12:51:46 -07:00
Tonis Tiigi
50aa895477
vendor: update buildkit to v0.15.0-rc1
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-03 12:43:04 -07:00
Tõnis Tiigi and GitHub
74374ea418
Merge pull request #2576 from crazy-max/bake-call-check-docs
...
docs: link to build ref page for --call and --check ref with bake
2024-07-03 11:35:52 -07:00
Tõnis Tiigi and GitHub
c51004e2e4
Merge pull request #2556 from tonistiigi/bake-call
...
bake: add call methods support and printing
2024-07-03 10:40:32 -07:00
Tõnis Tiigi and GitHub
8535c6b455
Merge pull request #2562 from dvdksn/docs-buildx-b-call
...
docs: reference description for --call and --check
2024-07-03 10:17:33 -07:00
Tonis Tiigi
cc097db675
bake: fix printer reset before metadata written
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-03 09:54:09 -07:00
Tonis Tiigi
35313e865f
bake: add tests for call and list
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-03 09:54:03 -07:00
Tonis Tiigi
233b869c63
bake: add list-variables option
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-03 09:54:03 -07:00
Tonis Tiigi
7460f049f2
bake: add list-targets options to list available targets/groups
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-03 09:54:03 -07:00
Tonis Tiigi
8f4c8b094a
bake: allow text descriptions for targets
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-03 09:54:03 -07:00
Tonis Tiigi
8da28574b0
bake: add call methods support and printing
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-03 09:54:02 -07:00
Tõnis Tiigi and GitHub
7e49141c4e
Merge pull request #2574 from crazy-max/update-mod-outdated
...
dockerfile: update go-mod-outdated to v0.9.0
2024-07-03 09:42:04 -07:00
Tõnis Tiigi and GitHub
1ffc6f1d58
Merge pull request #2572 from crazy-max/build-ref-multi-nodes
...
build: set same ref when building on multiple nodes
2024-07-03 09:07:46 -07:00
Tonis Tiigi
cbe7901667
update Go to 1.22
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-02 22:27:43 -07:00
Tonis Tiigi
f374f64d2f
vendor: update buildkit to f7bda278b7e2
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-07-02 22:24:55 -07:00
Tõnis Tiigi and GitHub
4be2259719
Merge pull request #2501 from tonistiigi/remote-client-cache
...
remote: ensure that client connection is not established twice
2024-07-02 09:30:32 -07:00
Tõnis Tiigi and GitHub
6627f315cb
Merge pull request #2397 from dvdksn/buildx_build_canonical
...
docs: make buildx build the canonical doc
2024-07-02 09:17:01 -07:00
Tõnis Tiigi and GitHub
63eb73d9cf
Merge pull request #2560 from crazy-max/fix-localstate-remote
...
build: fix localstate for remote context and stdin
2024-06-28 16:56:53 -07:00
Tõnis Tiigi and GitHub
59a0ffcf83
Merge pull request #2546 from treuherz/multinode-annotations
...
Pass in index annotations from builds on multiple nodes
2024-06-28 16:46:20 -07:00
Tõnis Tiigi and GitHub
2b17f277a1
Merge pull request #2549 from daghack/warning-free-msg
...
Add message when --check does not produce warnings or errors
2024-06-28 16:45:57 -07:00
Tõnis Tiigi and GitHub
ea7c8e83d2
Merge pull request #2559 from tonistiigi/update-buildkit-0627
...
use csvvalue package for parsing csv inputs
2024-06-28 16:42:10 -07:00
Tõnis Tiigi and GitHub
9358c45b46
Merge pull request #2558 from tonistiigi/fix-sharedkey-for-context
...
build: fix sharedkey computation for local context
2024-06-28 16:41:30 -07:00
Tonis Tiigi
f7a32361ea
use csvvalue package for parsing csv inputs
...
This package is better suited for parsing single-line
CSV strings.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-27 21:31:11 -07:00
Tonis Tiigi
af902caeaa
vendor: update buildkit to 8397d0b9
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-27 20:44:07 -07:00
Tõnis Tiigi and GitHub
04000db8da
Merge pull request #2499 from thaJeztah/bump_buildkit
...
vendor: buildkit, docker/docker and docker/cli v27.0.1
2024-06-27 20:42:35 -07:00
Tonis Tiigi
b8da14166c
build: fix sharedkey computation for local context
...
When LocalDirs were changed to LocalMounts, this broke the
sharedKey computation that was based on the context directory
path. SharedKey defines if directory is valid candidate for
incremental context transfer and if not set properly then
different directories do metadata-based transfers to same destination.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-27 17:53:22 -07:00
Tonis Tiigi
c1f680df14
bake: print warnings on progress
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-27 17:31:15 -07:00
Tõnis Tiigi and GitHub
818045482e
Merge pull request #2522 from treuherz/annotation-per-type
...
Make multi-type annotation settings match docs
2024-06-26 10:07:27 -07:00
Tõnis Tiigi and GitHub
e5ded4b2de
Merge pull request #2521 from crazy-max/fix-buildinfo
...
fix assignment of buildinfo-attrs for exporter
2024-06-25 11:36:14 -07:00
Tõnis Tiigi and GitHub
6ef443de41
Merge pull request #2550 from crazy-max/provenance-mode-commands
...
build: read provenance response mode in commands pkg
2024-06-25 11:34:23 -07:00
Tõnis Tiigi and GitHub
076e19d0ce
Merge pull request #2555 from crazy-max/compose-test-cgroup
...
test: compose cgroup property
2024-06-25 11:25:59 -07:00
Tõnis Tiigi and GitHub
92aaaa8f67
Merge pull request #2524 from thaJeztah/test_engine_27.0
...
Dockerfile: update docker engine to 27.0.0-rc.2
2024-06-20 10:28:01 -07:00
Tõnis Tiigi and GitHub
6111d9a00d
Merge pull request #2531 from dvdksn/docs-xref-exportermanuals
...
docs: link to exporter descriptions from reference docs
2024-06-20 10:26:22 -07:00
Tõnis Tiigi and GitHub
310aaf1891
Merge pull request #2543 from thaJeztah/bump_testify
...
vendor: github.com/stretchr/testify v1.9.0
2024-06-20 10:25:37 -07:00
Tõnis Tiigi and GitHub
6c7e65c789
Merge pull request #2544 from thaJeztah/bump_cobra
...
vendor: github.com/spf13/cobra v1.8.1
2024-06-20 10:25:16 -07:00
Tõnis Tiigi and GitHub
9f7c8ea3fb
Merge pull request #2538 from tonistiigi/lint-fallback-v1.8.1
...
build: update lint fallback image to dockerfile 1.8.1
2024-06-18 09:51:41 -07:00
Tonis Tiigi
be12199eb9
build: update lint fallback image to dockerfile 1.8.1
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-18 09:33:55 -07:00
Tõnis Tiigi and GitHub
94355517c4
Merge pull request #2537 from tonistiigi/update-buildkit-v0.14.1
...
vendor: update buildkit v0.14.1
2024-06-18 09:20:28 -07:00
Tonis Tiigi
cb1be7214a
vendor: update buildkit v0.14.1
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-18 09:07:21 -07:00
Tõnis Tiigi and GitHub
31187735de
Merge pull request #2535 from thaJeztah/bump_credshelpers
...
vendor: github.com/docker/docker-credential-helpers v0.8.2
2024-06-17 16:39:23 -07:00
Tõnis Tiigi and GitHub
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
Tõnis Tiigi and GitHub
917d2f4a0a
Merge pull request #2523 from thaJeztah/test_engine_26.1
...
Dockerfile: update docker engine to 26.1.4
2024-06-14 19:32:47 -07:00
Tõnis Tiigi and GitHub
e423d096a6
Merge pull request #2508 from crazy-max/integration-tests-coverage
...
test: setup integration tests coverage
2024-06-13 10:10:32 -07:00
Tõnis Tiigi and GitHub
29c8107b85
Merge pull request #2514 from crazy-max/align-build-checks-tests
...
test: align build call tests
2024-06-11 13:51:46 -07:00
Tõnis Tiigi and GitHub
d3a53189f7
Merge pull request #2513 from tonistiigi/lint-fallback-1.8.0
...
build: update lint fallback image to dockerfile 1.8.0
2024-06-11 10:26:20 -07:00
Tonis Tiigi
0496dae9d5
build: update lint fallback image to dockerfile 1.8.0
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-11 10:12:52 -07:00
Tõnis Tiigi and GitHub
40fcf992b1
Merge pull request #2512 from tonistiigi/0611-update-buildkit
...
vendor: update buildkit to v0.14.0
2024-06-11 10:11:34 -07:00
Tonis Tiigi
85c25f719c
vendor: update buildkit to v0.14.0
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-11 09:56:59 -07:00
Tõnis Tiigi and GitHub
59f52c9505
Merge pull request #2507 from daghack/update-lint-metric-regex
...
Update the lint metrics to match agains the rule URL
2024-06-10 13:33:25 -07:00
Tõnis Tiigi and GitHub
39db6159f9
Merge pull request #2503 from tonistiigi/20240606-update-buildkit
...
update buildkit to v0.14.0-rc2
2024-06-06 16:30:31 -07:00
Tonis Tiigi
922328cbaf
build: update lint fallback image to v1.8.0-rc2
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-06 16:18:43 -07:00
Tonis Tiigi
aa0f90fdd6
vendor: update buildkit to v0.14.0-rc2
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-06 16:17:17 -07:00
Tonis Tiigi
9ceda78057
remote: ensure that client connection is not established twice
...
Because remote driver implements Info() by calling
Client() internally, two instances on Client are created
backed by separate TCP connection. This hack avoids it
and improves performance.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-05 22:04:59 -07:00
Tõnis Tiigi and GitHub
d8de5bb345
Merge pull request #2498 from tonistiigi/0603-lint-fallback-update
...
build: update lint fallback image
2024-06-03 13:28:21 -07:00
Tonis Tiigi
eff1850d53
build: update lint fallback image
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-03 13:17:52 -07:00
Tõnis Tiigi and GitHub
a24043e9f1
Merge pull request #2487 from daghack/call-lint
...
Rename --print to --call and make previous name hidden
2024-06-03 12:39:43 -07:00
Tonis Tiigi
0902294e1a
ensure call aliases also work formatting parameters
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-03 12:09:47 -07:00
Tonis Tiigi
89810dc998
build: set default call method name to build
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-06-03 10:42:35 -07:00
Tõnis Tiigi and GitHub
5afb210d43
Merge pull request #2491 from jsternberg/update-buildkit
...
vendor: update buildkit to v0.14.0-rc1
2024-06-03 10:23:26 -07:00
Tõnis Tiigi and GitHub
03f84d2e83
Merge pull request #2496 from crazy-max/dial-cmd-flags
...
dial-stdio: remove extra cmd.flags()
2024-06-03 09:08:32 -07:00
Tonis Tiigi
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
Tõnis Tiigi and GitHub
bc83ecb538
Merge pull request #2490 from tonistiigi/lint-fallback-update
...
build: update --print fallback image to 1.8.0-rc1
2024-05-31 14:08:08 -07:00
Tonis Tiigi
ceaa4534f9
build: update --print fallback image to 1.8.0-rc1
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-05-31 13:57:56 -07:00
Tõnis Tiigi and GitHub
9b6c4103af
Merge pull request #2488 from tonistiigi/add-jonathan
...
add Jonathan to buildx maintainers
2024-05-31 10:07:21 -07:00
Tõnis Tiigi and GitHub
4549283f44
Merge pull request #2482 from rvoh-tismith/fix/single_source_create
...
Add `--prefer-index` flag for`imagetools create` on a single source
2024-05-31 09:44:43 -07:00