Commit Graph

2262 Commits (75ab2b1137aa17b8330fcb4591f39b34ba7f7310)

Author SHA1 Message Date
Akihiro Suda d750cb188a
Merge pull request #1073 from tonistiigi/cni-net
add cni networking support
2019-07-19 10:47:27 +09:00
Andrey Smirnov 86e19b621e Implement frontend support for RUN --security=insecure
Example:

    RUN --security=insecure cat /proc/self/status | grep CapEff
    #84 0.093 CapEff:	0000003fffffffff

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-07-19 01:01:42 +03:00
Tibor Vass fd2d8e6339
Merge pull request #1085 from smira/sysfs-cgroup-rw-fix
Fix updating /sys/fs/cgroup mount to 'rw'
2019-07-18 14:38:51 -07:00
Andrey Smirnov df52fc7f9c Skip test in rootless mode
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-07-18 22:50:53 +03:00
Andrey Smirnov fc9781a77c Add test for 'rw' sysfs/cgroup re-mount
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-07-18 18:53:27 +03:00
Andrey Smirnov 5dbb31a212 Use oci.With helpers
Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-07-18 17:35:31 +03:00
Andrey Smirnov 0abd2ca506 Fix updating /sys/fs/cgroup mount to 'rw'
There were two bugs: Mount was matched by Type which is actually
`cgroup`, not `sysfs`. And the second problem was that copy of the value
was modified, not value in the slice.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2019-07-18 01:09:58 +03:00
Akihiro Suda 14a3b815ac
Merge pull request #1082 from tonistiigi/64align
util: patch atomic 64bit alignment
2019-07-17 11:54:30 +09:00
Tonis Tiigi 61a4e20547 util: patch atomic 64bit alignment
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-16 17:23:36 -07:00
Tõnis Tiigi 82c91badd3
Merge pull request #1063 from tiborvass/fix-1062
vendor: update containerd to 7c1e88399
2019-07-16 14:24:51 -07:00
Tibor Vass 7901ac88e0 vendor: update containerd to 7c1e88399
To update containerd with go mod, it is NOT possible to simply do:

```
go get github.com/containerd/containerd@7c1e88399ec0
```

because it would result in:

```
v1.2.1-0.20190507210959-7c1e88399ec0
```

which is an incorrect version prefix as we want the commit 7c1e88399
from master to have higher priority than a tagged version such as v1.2.*

We want to use a `v1.3.0-0.` prefix even though v1.3.* tags do not exist,
so that when they do, those do have higher priority compared to 7c1e88399.
In other words, containerd's master branch corresponds to a v1.3 dev branch.

The following was thus used to update containerd:

```
go get -d github.com/containerd/containerd@v1.3.0-0.20190507210959-7c1e88399ec0
go get -d github.com/opencontainers/runc@v1.0.0-rc8
make vendor
```

Signed-off-by: Tibor Vass <tibor@docker.com>
2019-07-16 18:31:47 +00:00
Tonis Tiigi acbdfc2851 util: add warning if network fallback is used
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-15 10:53:18 -07:00
Akihiro Suda aee28f4deb
Merge pull request #1077 from tonistiigi/exporter-lease
exporter: keep lease when exporting images
2019-07-15 21:19:27 +09:00
Akihiro Suda e368049d2e
Merge pull request #1075 from tonistiigi/context-paths
dockerfile: do not add linked and cache paths to context sources
2019-07-15 21:19:17 +09:00
Tonis Tiigi 954b73dae1 network: move ns creation from reexec to linkname
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-12 14:57:10 -07:00
Tonis Tiigi 0d22b5056f exporter: keep lease when exporting images
As manifests may be temporary if the same image is built in parallel one build can delete the manifest+config before the export for another finishes.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-12 13:12:45 -07:00
Tõnis Tiigi 6e7d3a1062
Merge pull request #1076 from ColinChartier/master
Add sanic to list of projects using buildkit
2019-07-12 11:03:03 -07:00
Tonis Tiigi e38512c056 testutil: add logs printing on error
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-12 11:00:07 -07:00
Tonis Tiigi 653c91e114 network: add non-lazy cni network init
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-12 11:00:02 -07:00
Colin Chartier ba96ff1e2d Add sanic to list of projects using buildkit
Signed-off-by: Colin Chartier <colin.n.chartier@gmail.com>
2019-07-12 13:29:02 -04:00
Tonis Tiigi 0cd68f6491 dockerfile: do not add linked and cache paths to context sources
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-11 17:11:59 -07:00
Tonis Tiigi e7759a861b client: add cni network tests
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-10 18:00:06 -07:00
Tonis Tiigi bc7a6f2556 add cni networking support
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-10 14:42:30 -07:00
Tõnis Tiigi db487c0cd0
Merge pull request #1071 from tiborvass/fix-osuser-panic
hack: fix runtime panic due to osuser build tag not set
2019-07-09 22:15:23 -07:00
Tibor Vass 969be2068e hack: fix runtime panic due to osuser build tag not set
Looks like due to a bug in Dockerfile frontend, only the BUILDKITD_TAGS
build arg was taken into account, not the env var.

Signed-off-by: Tibor Vass <tibor@docker.com>
2019-07-10 04:27:37 +00:00
Tõnis Tiigi a258bd18b2
Merge pull request #1060 from tiborvass/fix-windows
executor/oci: Fix windows compile
2019-07-09 17:12:47 -07:00
Tibor Vass 144958f91d executor/oci: compile on windows
Signed-off-by: Tibor Vass <tibor@docker.com>
2019-07-09 23:38:42 +00:00
Tibor Vass 477d7ef53d hack: build buildkitd for windows in buildkit-flavored Dockerfile
This is not meant to produce any working Windows binary of buildkitd.
Purpose is to catch compile failures on windows early.

Signed-off-by: Tibor Vass <tibor@docker.com>
2019-07-09 23:38:42 +00:00
Tõnis Tiigi 21034f4234
Merge pull request #1064 from zabio3/using-rawstring-regex
Simplify regular expression by using raw string literal
2019-07-02 17:39:42 -07:00
Tibor Vass 21ed8f5c1d
Merge pull request #1068 from tonistiigi/env-formatting
llb: fix excessive formatting
2019-07-02 14:28:23 -07:00
Tibor Vass fe8289063b
Merge pull request #1049 from tonistiigi/llb-validation
llbsolver: add more llb validation
2019-07-02 10:13:25 -07:00
Tonis Tiigi 5fc18fda78 llbsolver: add more llb validation
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-01 23:52:20 -07:00
Akihiro Suda 6b9018d97b
Merge pull request #1067 from lalyos/fix-connection-helper-docs
fix BULDKIT_HOST documentation for docker connection helper
2019-07-02 12:48:03 +09:00
Tonis Tiigi 717bb1d769 dockerfile: add test for formatting in env
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-01 16:55:17 -07:00
Tonis Tiigi 1ef979a7bb llb: fix excessive formatting
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-07-01 16:55:08 -07:00
lalyos 8dc64d698d fix BULDKIT_HOST documentation for docker connection helper
Signed-off-by: Lajos Papp <lalyos@yahoo.com>
2019-07-01 20:10:08 +02:00
zabio3 be2691d06c using raw string literal
regular expressions have their own escape sequences, raw strings can improve their readability.
Signed-off-by: Tomohiro Kusumoto <zabio1192@gmail.com>
2019-06-30 12:24:25 +09:00
Akihiro Suda a61393a5bc
Merge pull request #1044 from tonistiigi/fromremote-gc-race
worker: fix gc race on fromremote
2019-06-26 15:41:27 +08:00
Tõnis Tiigi db670c6f4b
Merge pull request #1040 from tiborvass/pass-dns-to-resolvconf
executor: allow setting DNSConfig to be used by resolvconf
2019-06-17 17:02:18 -07:00
Tibor Vass 8e692507ee executor: allow setting DNSConfig to be used by resolvconf
This patch allows downstream code to pass a DNSConfig that is
then used by executor/oci.GetResolvConf.

This would allow the BuildKit-based builder in Docker to honor
the docker daemon's DNS configuration, thus fixing a feature gap
with the legacy builder.

Signed-off-by: Tibor Vass <tibor@docker.com>
2019-06-17 20:43:33 +00:00
Tonis Tiigi 276fee0727 worker: fix gc race on fromremote
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-06-17 10:42:08 -07:00
Tibor Vass 914d86758c
Merge pull request #1024 from tonistiigi/gcr-workaround
pull: add cache for gcr bug
2019-06-17 10:36:49 -07:00
Tibor Vass b7ea8f13b8
Merge pull request #1036 from tonistiigi/error-tracing
add more error tracing
2019-06-17 10:25:23 -07:00
Tibor Vass c24275065a
Merge pull request #1046 from tonistiigi/userns-fixes
fixes for userns remapping
2019-06-10 17:43:07 -07:00
Tonis Tiigi 7b41906d89 executor: create hosts and resolv.conf with userns root
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-06-10 16:35:03 -07:00
Tonis Tiigi 17300c1046 file: avoid setting implicit root on idmap
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-06-10 16:34:43 -07:00
Tonis Tiigi e7ad765fcd executor: create directories as 711
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-06-10 16:34:09 -07:00
Tibor Vass d3cdcbf1f9
Merge pull request #1045 from tonistiigi/flaky-test-fix
fix flaky TestBasicInlineCacheImportExport
2019-06-10 15:17:50 -07:00
Tonis Tiigi 8e47580f71 fix flaky TestBasicInlineCacheImportExport
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2019-06-10 14:16:42 -07:00
Akihiro Suda 5a8fe20f4d
Merge pull request #1027 from chendave/default
Add default configuration as a reference
2019-06-10 17:40:32 +09:00