Nicolas De Loof
e0ae9d21b4
pass authprovider to buildkit session in addition to driver's Auth parameter
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-05-07 11:49:20 +02:00
Nicolas De Loof
e433777796
resolve build args without value from environment
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-29 10:43:09 +02:00
Nicolas De Loof
85af8cdaaa
local backend to rely on dockerCli's LoadDefaultConfigFile
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-22 17:51:28 +02:00
Nicolas De Loof
c83c46293f
fix race: poll for service completion. Using waitContainer might happend after container exit
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-22 08:51:25 +02:00
aiordache
c227fd5c5f
refactor to reduce calls to InspectRawImage
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-04-20 15:18:08 +02:00
aiordache
31de84f547
Set image digest as service image to trigger recreation after build
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-04-20 15:15:24 +02:00
Chris Crone
411612ed8d
Fix scan message with quiet flag
...
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2021-04-13 14:30:27 +02:00
Nicolas De Loof
26b8ef0f49
pass config file to buildkit for authentication
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-04-13 09:49:13 +02:00
Guillaume Tardif
073d8e5545
Categorize failure metrics, set specific metrics for compose file parse error, file not found, cmdline syntax errors, build error, pull error.
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-09 17:20:29 +02:00
Ulysses Souza
378d02dadd
Refactor `up --build`
...
This restarts containers which had it's images rebuilt
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-04-08 20:37:16 -03:00
Guillaume Tardif
d5efef2aa7
Use old build for windows engine also on compose up
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-04-01 09:59:01 +02:00
Nicolas De loof
9df272a893
Merge pull request #1470 from aiordache/build_args
...
Add `no-cache` build flag
2021-03-30 15:58:28 +02:00
aiordache
e92b2f80d2
Shell out to docker cli for windows container builds
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-30 13:42:52 +02:00
Guillaume Tardif
435a51f9e4
Add scan message after docker build, add e2e tests
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-29 19:12:06 +02:00
aiordache
3f0ee7072f
Add `no-cache` build flag
...
Signed-off-by: aiordache <anca.iordache@docker.com>
2021-03-26 18:16:22 +01:00
Nicolas De Loof
4b1297ec71
Support build.context with git URLs
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-19 10:21:12 +01:00
Nicolas De Loof
70694e12a2
add support for a few more composefile attributes
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-18 11:22:40 +01:00
Guillaume Tardif
8c99bb2c29
Fix build image label mapping
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-15 11:33:37 +01:00
Guillaume Tardif
2c50885484
Add support for composefile attributes
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-11 17:18:30 +01:00
Guillaume Tardif
9301c298ef
Merge pull request #1390 from ulyssessouza/quiet-pull
...
Add `quietPull` option to `up`
2021-03-11 09:09:55 +01:00
Ulysses Souza
aa4d15d28c
Add `quietPull` option to `up`
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-10 11:43:53 -03:00
Guillaume Tardif
3f600281e6
Merge pull request #1354 from ulyssessouza/fix-pull-arch
...
Take `platform` in account on pulling and building images
2021-03-08 12:24:10 +01:00
Guillaume Tardif
5d2e8754df
Don’t use context for scan suggest message, use cliconfig.Dir() as in scan plugin
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-05 09:41:04 +01:00
Ulysses Souza
a8d45d22cc
Take platform in account on compose build
...
Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
2021-03-04 01:04:49 -03:00
Guillaume Tardif
91b39d0772
Merge pull request #1380 from docker/build_args
...
introduce --build-args option
2021-03-03 18:27:41 +01:00
Nicolas De Loof
08e4222fbb
introduce --build-args option
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-03 16:44:53 +01:00
Nicolas De loof
12ffdd1405
Merge pull request #1381 from gtardif/fix_up_build
...
Fix compose up --build not forcing rebuild of present image
2021-03-02 18:57:34 +01:00
Guillaume Tardif
8b6e356af4
Fix compose up --build not forcing rebuild of present image
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-03-02 18:12:51 +01:00
Nicolas De Loof
6412d88703
introduce build --progress
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-02 09:34:38 +01:00
Nicolas De Loof
6f73007265
support compose build --pull
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-03-02 09:06:21 +01:00
Guillaume Tardif
accc65ae8b
Check if scan has already been invoked before suggesting using it
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-25 10:32:56 +01:00
Guillaume Tardif
fa3a08e4fc
Check scan plugin is available before suggesting to use it
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-25 09:25:49 +01:00
Guillaume Tardif
81acdba670
Allow users to turn off scan suggest with env var
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-25 09:25:49 +01:00
Guillaume Tardif
30631eea03
scan message in compose build and compose up
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-25 09:25:49 +01:00
Guillaume Tardif
156efb8463
Scan suggest message in docker compose build
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-02-25 09:25:36 +01:00
Nicolas De Loof
8054af8011
introduce --no-build option
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2021-02-23 10:42:51 +01:00
Guillaume Tardif
7dd3a5a1eb
Remove duplicate compute of image name & add unit test
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2021-01-13 17:30:01 +01:00
Chris Crone
65561c085a
deps: Bump docker and buildx vendoring
...
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-16 10:57:42 +01:00
Chris Crone
87153b9d25
local.compose.build: Ensure images are exported
...
If a user has BUILDX_NO_DEFAULT_LOAD=1 set, then the images will
not be stored in the image store unless we explicitly say that they
must be.
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-11 11:08:49 +01:00
Chris Crone
ddaec1a367
compose.build: Wait for progress writer after build
...
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-11 10:40:09 +01:00
Chris Crone
6e76aadfd6
deps: Bump buildx and docker vendoring
...
Signed-off-by: Chris Crone <christopher.crone@docker.com>
2020-12-11 10:40:09 +01:00
Guillaume Tardif
cf378834e5
No rebuild on compose up if image already exists by default, added first use of compose pull_policy and `compose up --build` to allow to force rebuild.
...
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2020-12-10 18:38:16 +01:00
Nicolas De Loof
1eb40999e2
Split compose.go into command-focussed go files
...
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
2020-12-08 11:58:49 +01:00