Tõnis Tiigi and GitHub
d353f5f6ba
Merge pull request #2717 from crazy-max/fix-ls-notrunc
...
ls: ensure deterministic output for truncated platforms
2024-10-04 12:52:45 -07:00
Tõnis Tiigi and GitHub
4507a492da
Merge pull request #2719 from jsternberg/bake-remote-size
...
bake: raise maximum size limit and fix size check
2024-10-04 12:51:28 -07:00
Tõnis Tiigi and GitHub
48153169d8
Merge pull request #2716 from jsternberg/dockerfile-size-limit
...
build: raise maximum size limit for dockerfile and fix size check
2024-10-03 14:25:31 -07:00
Tõnis Tiigi and GitHub
7c91f3d0dd
Merge pull request #2138 from crazy-max/ls-notrunc
...
ls: no-trunc opt
2024-10-03 08:21:09 -07:00
Tõnis Tiigi and GitHub
1db8f6789f
Merge pull request #2713 from jsternberg/gogoproto-remove
...
protobuf: remove gogoproto
2024-10-02 15:39:47 -07:00
Tõnis Tiigi and GitHub
f102ad73a8
Merge pull request #2672 from daghack/dockerfile-path-on-warnings
...
build: display Dockerfile path on check warnings
2024-09-19 08:30:48 -07:00
Tonis Tiigi
f8657e8798
build: use better references for --call fallback images
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-09-18 18:43:40 -07:00
Tõnis Tiigi and GitHub
9eb0318ee6
Merge pull request #2696 from crazy-max/test-fix-cleanup
...
test: fix missing envs when cleaning up some workers
2024-09-17 20:27:29 -07:00
Tonis Tiigi
c60afbb25b
bake: fix linking to targets with entitlements
...
When linked target requires entitlement, same entitlement
is also needed by the caller. Otherwise, the request will
fail when the build is processed.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-09-16 16:31:22 -07:00
Tonis Tiigi
9bfa8603f6
bake: fix validation for linking to itself
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-09-16 16:29:32 -07:00
Tõnis Tiigi and GitHub
604b723007
Merge pull request #2684 from crazy-max/inspect-buildkitd-conf
...
inspect: display buildkit daemon configuration file
2024-09-11 17:32:25 -07:00
Tõnis Tiigi and GitHub
cd5381900c
Merge pull request #2688 from crazy-max/bump-xx
...
dockerfile: update xx to 1.5.0
2024-09-11 10:50:58 -07:00
Tõnis Tiigi and GitHub
bba2bb4b89
Merge pull request #2686 from crazy-max/bump-buildkit
...
dockerfile, ci: update buildkit to latest stable
2024-09-11 10:50:40 -07:00
Tõnis Tiigi and GitHub
8fd27b8c23
Merge pull request #2685 from crazy-max/skip-networkhost-conf
...
builder: do not set network.host entitlement flag if already set in buildkitd conf
2024-09-11 10:39:29 -07:00
Tõnis Tiigi and GitHub
6dcc8d8b84
Merge pull request #2689 from crazy-max/bake-fix-network-field
...
bake: fix missing omitempty and optional tags for network field
2024-09-11 10:35:33 -07:00
Tonis Tiigi
7213b2a814
vendor: update buildkit to v0.16.0-rc2
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-09-09 16:29:01 -07:00
Tonis Tiigi
f0f8876902
docs: add docs for bake network mode config
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-09-04 09:02:06 -07:00
Tonis Tiigi
fa1d19bb1e
docs: add docs for bake entitlements config
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-09-04 09:01:59 -07:00
Tonis Tiigi
83d5c0c61b
bake: allow setting networkmode in HCL/JSON
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-09-03 18:18:59 -07:00
Tõnis Tiigi and GitHub
e58a1d35d1
Merge pull request #2670 from docker/dependabot/github_actions/peter-evans/create-pull-request-7.0.0
...
build(deps): bump peter-evans/create-pull-request from 6.1.0 to 7.0.0
2024-09-03 14:44:14 -07:00
Tõnis Tiigi and GitHub
f369377d74
Merge pull request #2666 from tonistiigi/bake-entitlements
...
bake: enable support for entitlements
2024-09-03 10:49:48 -07:00
Tõnis Tiigi and GitHub
b7486e5cd5
Merge pull request #2647 from daghack/print-warning-count
...
build: print out the number of warnings after completing a rule check
2024-09-03 10:22:46 -07:00
Tonis Tiigi
5ecff53e0c
bake: read original command name from the env for prompt
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-09-03 08:54:42 -07:00
Tonis Tiigi
203fd8aee5
bake: enable support for entitlements
...
Add support for security.insecure and network.host
entitlements via bake. User needs to confirm elevated
privileges through a prompt or CLI flags.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-08-30 09:33:28 -07:00
Tõnis Tiigi and GitHub
96eb69aea4
Merge pull request #2663 from tonistiigi/git-attr-panic-fix
...
build: avoid possible panic when reading git info
2024-08-23 16:59:30 +03:00
Tonis Tiigi
d1d8d6e19c
build: avoid possible panic when reading git info
...
Not all the error cases from getGitAttributes returned
appendNoneFunc. When nil was returned it caused a panic.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-08-23 16:42:04 +03:00
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
Tonis Tiigi
adbcc2225e
build: allow builds from stdin for multi-node builders
...
When building from same stream all nodes need to read
data from the same stream. In order to achive that there
is a new SyncMultiReader wrapper that sends the stream
concurrently to all readers. Readers must read at similar
speed or pauses will happen while they wait for each other.
Dockerfiles were already written to disk before sent. Now
the file written by first node is reused for others.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2024-08-14 13:13:18 +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