Kohei Tokunaga
a27b8395b1
Enable to run build and invoke in background
...
Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
2 years ago
CrazyMax
ae59e1f72e
Merge pull request #1305 from jedevc/progress-group-prefixed-writer
...
progress: add prefix to vertex progress group
2 years ago
Justin Chadwell
a50e89c38e
progress: explicitly fail if tty requested but not available
...
The NewPrinter function is mostly borrowed from buildkit. However, at
some point, it seems that the implementations drifted.
This patch updates buildx to be more similar in behavior to it's
buildkit counterpart, specifically, it will explicitly fail if a TTY
output is requested using "--progress=tty", but the output is not
available.
To gracefully fallback to plain progress in this scenario,
"--progress=plain" is required.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Justin Chadwell
0566e62995
progress: add prefix to vertex progress group
...
As buildkit now uses progress groups for the COPY --link instruction
we need to ensure that we additionally prefix the progress group name,
or the target name will be left off in bake commands with more than one
target.
Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
Sebastiaan van Stijn
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>
3 years ago
Tonis Tiigi
b77d7864fa
progress: avoid double logs when multiple targets build same step
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
3 years ago
Edgar Lee
2d7540fb0a
Separate io.Writer from console.File for NewPrinter
...
Signed-off-by: Edgar Lee <edgarl@netflix.com>
3 years ago
Tonis Tiigi
ed4103ef52
commands: build summary of warnings on build
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
3 years ago
Tonis Tiigi
9c3be32bc9
vendor: update buildkit to 539be170
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
3 years ago
Ulysses Souza
55d5b80dfe
Add quiet mode to progress printer
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
4 years ago
Tonis Tiigi
dba79ba223
update lint to go1.16/golangci
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
4 years ago
Tonis Tiigi
f68f42cb11
build: add push support to docker driver
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
4 years ago
Tonis Tiigi
40fad4bbb5
progress: make sure all channels have written before returning
...
Possible write on closed channel on cancellation before.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
4 years ago
Tonis Tiigi
1496ac9b55
util: simplify progress syncronization
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
4 years ago
ulyssessouza
3d630c6f7f
Replace usage of *os.File by console.File interface on printer
...
Signed-off-by: ulyssessouza <ulyssessouza@gmail.com>
5 years ago
Tonis Tiigi
f8e8f17f4e
progress: add env config
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
0398fa337b
build: multi-node build support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
cac37434aa
build: add docker output for non-moby drivers
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
a932d52e35
bake: initial implementation
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago
Tonis Tiigi
a6d893efca
driver: add logging support to bootstrap
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
6 years ago