02bae945c3
add support for oci-layout build-context
...
Signed-off-by: Avi Deitcher <avi@deitcher.net >
2022-07-18 21:19:03 -04:00
387e1ecca6
Add --invoke
option to launch a container from the build result
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com >
2022-06-21 10:32:07 +09:00
1cb1ee018b
build: enhance warning message when no output specified
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-06-03 19:26:21 +02:00
48067735fc
Update golint to revive
...
Resolves the following message in golangci output:
> The linter 'golint' is deprecated (since v1.41.0) due to: The
repository of the linter has been archived by the owner. Replaced by
revive.
Additionally, fix a minor linting issue discovered by revive.
Signed-off-by: Justin Chadwell <me@jedevc.com >
2022-05-23 16:54:46 +01:00
ca3507656d
build: allow external Dockerfile on remote context
...
BuildKit has supported external Dockerfile on remote contexts since
v0.5.0, included in Moby v19.03.0. The client side was the only missing
piece.
Signed-off-by: Cory Snider <csnider@mirantis.com >
2022-05-16 16:47:08 -04:00
fc7ba75fd7
Remove uses of deprecated io/ioutil
...
The package has been deprecated since Go 1.16: https://go.dev/doc/go1.16#ioutil
Signed-off-by: Sebastiaan van Stijn <github@gone.nl >
2022-03-10 01:46:06 +01:00
19ff7cdadc
build: set remote digest when pushed with docker driver
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-03-08 19:31:13 +01:00
8079bd2841
Merge pull request #980 from crazy-max/imageid
...
build: return imageID when loading without docker driver
2022-03-04 10:50:53 -08:00
2d5368cccc
Merge pull request #981 from tonistiigi/target-context-remove
...
build: remove target context if platform specific used
2022-03-04 16:29:20 +01:00
e7863eb664
build: return imageID when loading without docker driver
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-03-04 15:27:09 +01:00
171c4375a1
build: fix multi-node builds with mixed platforms
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-03-03 13:15:13 -08:00
45844805ec
build: remove target context if platform specific used
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-03-01 21:25:43 -08:00
280c008f81
bake: make named contexts relative to remote bake input
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-02-24 23:19:12 -08:00
10debb577e
Merge pull request #959 from tonistiigi/docker-proxy-config
...
set build-args from docker proxy configuration
2022-02-22 13:56:11 -08:00
75cdea48e4
Merge pull request #962 from tonistiigi/bake-deps-error
...
build: fix deadlock on handling deps errors
2022-02-22 10:50:24 +01:00
e871c39f05
Merge pull request #908 from crazy-max/inline-buildattrs
...
build: inline buildinfo attrs
2022-02-18 19:36:25 -08:00
3b2aeb2d5b
build: fix deadlock on handling deps errors
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-02-18 18:41:52 -08:00
e98a476dc8
set build-args from docker proxy configuration
...
For backward compatibility with docker build.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-02-17 22:21:43 -08:00
7677052cb7
build: send buildinfo dependencies
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-02-17 21:02:06 +01:00
3b47722032
build: add no-cache-filter
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-02-10 22:00:02 -08:00
fa04611afc
bake: connect results between build targets
...
Build context “target:<name>” will take the contents
from another bake target.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-01-27 18:46:12 -08:00
24db7366ba
build: inline buildinfo attrs
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2022-01-08 17:53:24 +01:00
d77e2453da
commands: rename context flag to build-context
...
Avoid conflicts with docker context
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-01-07 18:31:32 -08:00
de6b04d726
build: add support for named contexts
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2022-01-04 22:55:12 -08:00
1cca41b81a
build: support insecure export option for multi-node build
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-11-04 10:02:14 -07:00
88d0775692
refactor accessing registry configs via drivers
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-11-04 10:01:23 -07:00
8afc82b427
Merge pull request #817 from tonistiigi/project-sharedkey
...
build: set local sharedkey per project basename
2021-11-04 09:52:51 -07:00
02d29e0af5
build: fix setting iidfile with multi-node push
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-11-03 23:12:00 -07:00
aa52a5a699
build: set local sharedkey per project basename
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-10-29 21:29:04 -07:00
dd15969c93
build: add cgroup-parent support
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-10-28 19:34:47 +02:00
2890209a11
refactor: lexical order for build opts
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-10-27 23:42:16 +02:00
25d2f73858
build: warning on deprecated flags
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-10-26 21:36:49 +02:00
b6474d43a9
Mark span status as error when fatal error occurs.
...
Before this only recorded errors instead of setting the span status,
which makes it harder to dig through.
Now an error that bubbles is reflected in the span status.
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2021-10-21 22:24:51 +00:00
8e5595b7c7
build: add shm-size support
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-10-19 21:06:01 +02:00
b89e2f35df
build: add ulimit support
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com >
2021-10-15 16:03:49 +02:00
b05c313204
Merge pull request #740 from bossmc/support-quiet
...
Implement `--quiet` support
2021-09-03 11:00:26 -07:00
ef3e46fd62
Move printing to stdout up to the command itself
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com >
2021-08-20 15:13:23 +01:00
c19c018a4c
Implement --quiet
support
...
Signed-off-by: Andy Caldwell <andrew.caldwell@metaswitch.com >
2021-08-20 15:13:13 +01:00
422ba60b04
use long-running context for client initialization
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-08-19 20:36:24 -07:00
3768ab268b
fix: should ignore nil client
...
Signed-off-by: Morlay <morlay.null@gmail.com >
2021-07-21 15:47:55 +08:00
9d88450118
enable opentelemetry support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-07-12 13:42:52 -07:00
a1d899d400
Fail fast on multi platform build with load
...
Signed-off-by: Djordje Lukic <djordje.lukic@docker.com >
2021-06-27 16:18:08 +02:00
399df854ea
build: split buildflags package
...
Planned to be imported by nerdctl in future.
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp >
2021-04-12 14:36:56 +09:00
d7964be29c
gha cache caps detection
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-03-23 08:58:50 -07:00
0f09e2ecfe
don't require entitlement for network none
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2021-02-04 22:45:20 -08:00
33e3ca524e
Merge pull request #442 from tonistiigi/moby-push
...
build: add push support to docker driver
2020-12-08 15:01:37 -08:00
ea1a71dc07
Merge pull request #467 from cpuguy83/deterministic_output
...
Get multi-platform buildkit frontend opt from args
2020-12-08 15:00:57 -08:00
f68f42cb11
build: add push support to docker driver
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2020-12-08 13:54:41 -08:00
7f58ad45fa
Get multi-platform buildkit frontend opt from args
...
This allows builders to opt into determnistic output regardless of
multi-platform output or not.
Signed-off-by: Brian Goff <cpuguy83@gmail.com >
2020-12-08 13:18:56 -08:00
6b6afc4077
build: add logger for auth
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2020-12-07 23:43:28 -08:00