Tonis Tiigi
bcf1967dd0
builder: delete sandbox in a goroutine for performance
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2018-11-28 22:55:39 -08:00
Tonis Tiigi
1ad272c7e4
builder: set exernalkey option for faster hook processing
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2018-11-28 22:28:57 -08:00
Sebastiaan van Stijn
2483e03531
Merge pull request #38238 from tiborvass/fix-38208
...
builder: deprecate prune filter `unused-for` in favor of `until`
2018-11-21 23:36:14 +01:00
Tibor Vass
62923f29f5
builder: ignore label and label! prune filters
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-11-21 01:39:53 +00:00
Tibor Vass
369da264ba
builder: deprecate prune filter unused-for in favor of until
...
This is to keep the UX consistent. `unused-for` is still accepted and a synonym.
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-11-21 01:39:53 +00:00
Tonis Tiigi
effb2bd9d2
builder: avoid unset credentials in containerd
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2018-11-19 17:40:08 -08:00
Tibor Vass
48620057be
builder: fix bugs when pruning buildkit cache with filters
...
Only the filters the user specified should be added as cache filters to buildkit.
Make an AND operation of the provided filters.
ID filter now does prefix-matching.
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-11-05 23:15:35 +00:00
Tonis Tiigi
2732fe527f
builder: fix duplicate mount release
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2018-10-22 17:24:20 -07:00
Tonis Tiigi
c693d45acf
builder: fix private pulls on buildkit
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2018-10-17 17:45:44 -07:00
Akihiro Suda
b5ed4ebe06
Merge pull request #36537 from Microsoft/jjh/lcow-log-stderr
...
LCOW: Log stderr on failures to ease diagnosis
2018-10-06 11:05:55 +09:00
Akihiro Suda
837b9c6214
bump up buildkit
...
Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp >
2018-10-05 18:33:03 +09:00
John Howard
63f9c7784b
LCOW: Log stderr on failures
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2018-09-26 13:23:04 -07:00
Tibor Vass
34eede0296
Remove 'docker-' prefix for containerd and runc binaries
...
This allows to run the daemon in environments that have upstream containerd installed.
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-09-24 21:49:03 +00:00
Yong Tang
fb7883e980
Merge pull request #37846 from tiborvass/buildkit-gc
...
builder: use buildkit's GC for build cache
2018-09-22 10:00:06 -07:00
Tibor Vass
4a776d0ca7
builder: use buildkit's GC for build cache
...
This allows users to configure the buildkit GC.
The following enables the default GC:
```
{
"builder": {
"gc": {
"enabled": true
}
}
}
```
The default GC policy has a simple config:
```
{
"builder": {
"gc": {
"enabled": true,
"defaultKeepStorage": "30GB"
}
}
}
```
A custom GC policy can be used instead by specifying a list of cache prune rules:
```
{
"builder": {
"gc": {
"enabled": true,
"policy": [
{"keepStorage": "512MB", "filter": ["unused-for=1400h"]]},
{"keepStorage": "30GB", "all": true}
]
}
}
}
```
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-09-21 22:06:00 +00:00
Tibor Vass
d0f00bc1fb
builder: vendor buildkit to 39404586a50d1b9d0fb1c578cf0f4de7bdb7afe5
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-09-21 20:43:26 +00:00
Anda Xu
171d51c861
add support of registry-mirrors and insecure-registries to buildkit
...
Signed-off-by: Anda Xu <anda.xu@docker.com >
2018-09-20 11:53:02 -07:00
Akihiro Suda
5adee401d1
Merge pull request #37843 from Microsoft/jjh/boltdb
...
Revendor libnetwork @ 36d3bed0e9
2018-09-14 23:22:36 +09:00
Sebastiaan van Stijn
3735ea7b76
Merge pull request #37741 from mooncak/fix_typos
...
fix typos in experimental.go and buildargs.go
2018-09-14 11:53:54 +02:00
John Howard
5c20890b9b
boltdb/bolt --> go.etcd.io/bbolt
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2018-09-13 12:38:39 -07:00
Anda Xu
54b3af4c7d
update vendor
...
Signed-off-by: Anda Xu <anda.xu@docker.com >
2018-09-07 17:48:41 -07:00
Anda Xu
d52485c2f9
propagate the dockerd cgroup-parent config to buildkitd
...
Signed-off-by: Anda Xu <anda.xu@docker.com >
2018-09-07 17:48:41 -07:00
Tõnis Tiigi
4842f7a867
Merge pull request #37738 from tiborvass/remove-unused-field-in-builder
...
builder: remove unused netnsRoot field in builder-next
2018-09-06 13:33:35 -07:00
Tonis Tiigi
354c241041
builder: implement ref checker
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-09-01 23:40:06 +00:00
Tibor Vass
d47435a004
builder: fix pruning all cache
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-09-01 22:01:17 +00:00
Tibor Vass
8ff7847d1c
builder: add prune options to the API
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-09-01 22:01:17 +00:00
mooncake
5160003b4d
fix typos
...
Signed-off-by: mooncake <xcoder@tenxcloud.com >
Signed-off-by: Bily Zhang <xcoder@tenxcloud.com >
2018-09-01 21:26:38 +08:00
Tibor Vass
8ab9e78ee4
builder: remove unused netnsRoot field in builder-next
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-08-31 19:09:52 +00:00
Tibor Vass
dc7e472db9
builder: fix bridge networking when using buildkit
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-08-23 05:20:01 +00:00
Tibor Vass
16084ea8c8
builder: temporarily disable bridge networking when using buildkit
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-08-22 03:29:17 +00:00
Tibor Vass
4a40f921d3
Disable buildkit's subreaper until the issue is understood
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-08-20 18:55:01 +00:00
Tonis Tiigi
d46fa93cb6
builder: enable add-host for buildkit
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2018-08-20 18:55:01 +00:00
Tonis Tiigi
c6c680ad5b
builder: allow setting host/none network mode
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2018-08-20 18:55:01 +00:00
Tonis Tiigi
d6424a088d
builder: setup code for a bridge networking
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com >
2018-08-20 18:55:01 +00:00
John Stephens
8613b34a7e
Merge pull request #37659 from Microsoft/jjh/37356
...
LCOW: Mount to short container paths to avoid command-line length limit
2018-08-17 15:48:35 -07:00
Yong Tang
14d5569f19
Merge pull request #37563 from Microsoft/jjh/fix-vso17531561v2
...
LCOW: Ensure platform is populated on COPY/ADD
2018-08-17 12:51:17 -07:00
John Stephens
b3e9f7b13b
Merge pull request #35521 from salah-khan/35507
...
Add --chown flag support for ADD/COPY commands for Windows
2018-08-17 11:31:16 -07:00
Tibor Vass
7c1c8f1fe2
builder: implement PullParent option with buildkit
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-08-17 08:40:58 +00:00
John Howard
dffc966165
LCOW: Capture stderr on external process. Log actual error rather than throwaway
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2018-08-16 19:20:14 -07:00
Akihiro Suda
080c27dd13
Merge pull request #37597 from tiborvass/fix-cancel-bug
...
builder: do not cancel buildkit status request
2018-08-16 12:42:35 +09:00
Salahuddin Khan
763d839261
Add ADD/COPY --chown flag support to Windows
...
This implements chown support on Windows. Built-in accounts as well
as accounts included in the SAM database of the container are supported.
NOTE: IDPair is now named Identity and IDMappings is now named
IdentityMapping.
The following are valid examples:
ADD --chown=Guest . <some directory>
COPY --chown=Administrator . <some directory>
COPY --chown=Guests . <some directory>
COPY --chown=ContainerUser . <some directory>
On Windows an owner is only granted the permission to read the security
descriptor and read/write the discretionary access control list. This
fix also grants read/write and execute permissions to the owner.
Signed-off-by: Salahuddin Khan <salah@docker.com >
2018-08-13 21:59:11 -07:00
Tibor Vass
f1ef16c736
builder: do not cancel buildkit status request
...
This fixes a bug when the build results in an error and instead of sending
the logs of the container to the client, it signals a cancelation.
The context should not be wired to the status request, as only the
build requests need to be canceled.
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-08-10 17:29:32 +00:00
Akihiro Suda
4122eb1a43
Merge pull request #37609 from seratch/fix-typos
...
Fix the several typos detected by github.com/client9/misspell
2018-08-09 08:48:05 +09:00
Kazuhiro Sera
1e49fdcafc
Fix the several typos detected by github.com/client9/misspell
...
Signed-off-by: Kazuhiro Sera <seratch@gmail.com >
2018-08-09 00:45:00 +09:00
Tibor Vass
c53d7e7104
builder: fix compilation errors after vendoring
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-08-07 06:03:10 +00:00
John Howard
ae6b5828ce
LCOW: Ensure platform is populated on COPY/ADD
...
Signed-off-by: John Howard <jhoward@microsoft.com >
2018-07-30 12:49:33 -07:00
Tibor Vass
9ebed53c54
Merge pull request #37439 from tiborvass/vendor-buildkit
...
Set BuildKit's ExportedProduct variable to show useful errors in the future
2018-07-17 12:10:23 -07:00
Tibor Vass
81599222fc
validate: please vet
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-07-16 21:41:54 +00:00
Tibor Vass
0ab7c1c5ba
vendor: buildkit to 98f1604134f945d48538ffca0e18662337b4a850
...
Signed-off-by: Tibor Vass <tibor@docker.com >
2018-07-16 21:41:53 +00:00
Yong Tang
492545e139
Merge pull request #37396 from yui-knk/error_when_base_name_resolved_to_blank
...
Return error if basename is expanded to blank
2018-07-15 15:42:57 -07:00