Commit Graph

2601 Commits (03987d2a7536ba58c7654b9d416f9364bfc2437f)

Author SHA1 Message Date
Tonis Tiigi 05013a663b pull: fix session updating on resolver
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-07-05 00:15:33 -07:00
Tonis Tiigi 214aa5dbcf pull: allow separate sessions for different parts of pull
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-07-05 00:15:33 -07:00
Tonis Tiigi 2e9987ad16 session: track sessions with a group construct
Avoid hidden session passing and allow one session to drop when
multiple builds share a vertex.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-07-05 00:15:25 -07:00
Tõnis Tiigi ddfd87ec1f
Merge pull request #1553 from AkihiroSuda/runc-rc91
update runc binary to v1.0.0-rc91
2020-07-01 21:56:55 -07:00
Akihiro Suda d954b77f60
update runc binary to v1.0.0-rc91
release note: https://github.com/opencontainers/runc/releases/tag/v1.0.0-rc91

vendored library isn't updated in this commit (waiting for containerd to vendor runc rc91)

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-07-02 12:54:18 +09:00
Tõnis Tiigi 7b723809ce
Merge pull request #1552 from AkihiroSuda/update-20200701
Dockerfile: update binaries
2020-06-30 22:05:53 -07:00
Akihiro Suda ceb41d4350
Dockerfile: update binaries
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
2020-07-01 13:32:22 +09:00
Akihiro Suda c25f2217dc
Merge pull request #1548 from tonistiigi/push-fix
push: dedupe push handlers
2020-06-30 12:49:37 +09:00
Tibor Vass 22d69507d3
Merge pull request #1549 from tonistiigi/time-formatting
progressui: fix logs time formatting
2020-06-29 15:12:08 -07:00
Tonis Tiigi bd29ad98cd progressui: fix logs time formatting
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-06-29 14:39:41 -07:00
Tonis Tiigi 375bfa60a2 contentutil: synchronize writers backed by pusher
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-06-29 12:40:05 -07:00
Tonis Tiigi d8e8fda57c push: dedupe push handlers
This allows to work around the containerd issue on
tracking push status on pushing manifest lists.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-06-29 12:08:18 -07:00
Tõnis Tiigi 17c11d9a97
Merge pull request #1541 from sipsma/fix-media-type
image export: Use correct media type when creating new layer blobs.
2020-06-24 14:56:26 -07:00
Erik Sipsma 43b58b2016 client test: log skip in checkAllReleasable.
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
2020-06-24 12:07:00 -07:00
Erik Sipsma 61bd44337b image export: Use correct media type when creating new layer blobs.
There are a few bugs in the image export related code being fixed here.
GetMediaTypeForLayers was iterating over diffPairs in the wrong order, resulting
in it always returning nil for images with more than one layer. This actually
worked most of the time because it accidentally triggered a separate codepath
meant to handle v0.6 migrations where mediatypes left empty get filled in.
However, fixing that bug revealed another existing bug where the "oci" parameter
in the image exporter was not being honored except when the v0.6 codepath got
followed, resulting in images to always have oci layer media types even when
docker types are used for the rest of the image descriptors.

Due to the interaction between these various bugs, the only practical end effect
previously was that single-layer images could use the wrong layer media type. An
existing test has been expanded to cover that case in a previous commit.

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
2020-06-24 12:07:00 -07:00
Erik Sipsma 9e0870415d Test media type after first push in TestBuildExportWithUncompressed
There is a bug in the way images are pushed that results in oci types being used
for layers even when docker types should be used, but only in single-layer
images.

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
2020-06-24 09:53:34 -07:00
Tõnis Tiigi 95010be66d
Merge pull request #1538 from sipsma/integ-fix
client test: Fix check for whether sandbox has containerd
2020-06-23 16:17:44 -07:00
Erik Sipsma 83af7c3c94 client test: Fix TestBuildExportWithUncompressed
This test had previously been accidentally not executing past the check for
whether containerd was running. A previous commit fixes that check, this commit
fixes a few bugs that had been going unnoticed in the containerd-specific part
of the test's code.

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
2020-06-21 20:42:53 -07:00
Erik Sipsma 463ec47ba0 client test: Fix check for whether sandbox has containerd
Before this, the check was always returning that containerd wasn't running and
thus skipping the rest of several test cases.

Signed-off-by: Erik Sipsma <erik@sipsma.dev>
2020-06-21 20:42:53 -07:00
Tõnis Tiigi b0c5648786
Merge pull request #1533 from tonistiigi/git-token-auth
git: support for token authentication
2020-06-19 13:24:30 -07:00
Tonis Tiigi fdebe4c6b2 secrets: reuse constant on error message
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-06-18 09:19:23 -07:00
Tonis Tiigi 0ab180019d secrets: remove file specifics from variable names
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-06-17 12:33:15 -07:00
Tonis Tiigi 64e64e424d secrets: allow providing secrets with env
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-06-16 17:12:39 -07:00
Tonis Tiigi 49de675234 git: support for token authentication
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-06-16 17:00:06 -07:00
Tõnis Tiigi 7c9d706a2a
Merge pull request #1530 from thaJeztah/containerd_userns
use containerd/sys to detect UserNamespaces
2020-06-15 11:36:55 -07:00
Sebastiaan van Stijn 932c39505b
use containerd/sys to detect UserNamespaces
The implementation in libcontainer/system is quite complicated,
and we only use it to detect if user-namespaces are enabled.

In addition, the implementation in containerd uses a sync.Once,
so that detection (and reading/parsing `/proc/self/uid_map`) is
only performed once.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-06-15 12:51:20 +02:00
Tõnis Tiigi df35e9818d
Merge pull request #1529 from tonistiigi/migrate-fix
cache: avoid snapshot migration on shallow refs
2020-06-14 21:53:06 -07:00
Tibor Vass 929fff05fb
Merge pull request #1492 from heychenbin/chmod_dev
dockerfile: add --chmod support for COPY/ADD command
2020-06-13 15:35:56 -07:00
Tonis Tiigi 99e77a889e cache: avoid snapshot migration on shallow refs
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-06-12 17:59:30 -07:00
Tõnis Tiigi 90cc8cca3f
Merge pull request #1526 from tonistiigi/security-capability-checksum
contenthash: allow security.capability in cache checksum
2020-06-11 08:21:48 -07:00
Chenbin b7fd382230 add chmod in COPY and ADD command
Signed-off-by: Chenbin <chen.bin11@zte.com.cn>
2020-06-10 21:37:46 +08:00
Akihiro Suda 53fa7382a3
Merge pull request #1516 from tonistiigi/qemu-emulator
exec: use qemu emulator automatically
2020-06-09 11:04:39 +09:00
Tonis Tiigi b0d3737627 contenthash: allow security.capability in cache checksum
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-06-07 22:16:56 -07:00
Tonis Tiigi f9e26128c0 exec: use qemu emulator automatically
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-06-07 22:08:52 -07:00
Akihiro Suda 920772c593
Merge pull request #1525 from tonistiigi/timeout-increase
increase test context timeouts
2020-06-08 03:17:35 +09:00
Tonis Tiigi cc88b8f4f4 increase test context timeouts
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-06-06 15:48:55 -07:00
Tõnis Tiigi 598a0bdc9a
Merge pull request #1523 from keyolk/userns
fix mount options for userns env
2020-06-06 15:26:51 -07:00
Tõnis Tiigi 422d5ead4f
Merge pull request #1524 from coryb/getmount-index-test
add unit test for getmount output index
2020-06-05 11:39:55 -07:00
Cory Bennett e351bfdd01 add unit test for getmount output index
Signed-off-by: Cory Bennett <cbennett@netflix.com>
2020-06-04 18:25:03 -07:00
Tõnis Tiigi f720548416
Merge pull request #1521 from coryb/tmpfs-no-output
skip tmpfs mounts when calculating indexes for llb.GetMount
2020-06-04 17:53:15 -07:00
Chanhun Jeong d3d9abb100 fix mount options for userns env
Signed-off-by: Chanhun Jeong <chanhun.jeong@navercorp.com>
Signed-off-by: Sunho Kim <z.sunno@navercorp.com>
2020-06-05 03:52:00 +09:00
Cory Bennett 2b462fc6ca skip tmpfs mounts when calculating indexes for llb.GetMount
Signed-off-by: Cory Bennett <cbennett@netflix.com>
2020-06-04 10:54:32 -07:00
Akihiro Suda 643f0ffb56
Merge pull request #1511 from tonistiigi/nil-cast-fix
cache: avoid nil dereference
2020-05-29 10:33:01 +09:00
Tonis Tiigi 8cd41468c0 cache: avoid nil dereference
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-05-27 14:58:16 -07:00
Tõnis Tiigi 08c91e0407
Merge pull request #1508 from smira/add-bldr
Add `bldr` project link to README as LLB language frontend
2020-05-27 10:53:57 -07:00
Akihiro Suda be58c5a425
Merge pull request #1409 from tonistiigi/travis-rm
travis: avoid cleaning up container
2020-05-27 07:08:53 +09:00
Andrey Smirnov 1155ddc02b Add `bldr` project link to README as LLB language frontend
Project [bldr](https://github.com/talos-systems/bldr) provides a way to package and build software as container
images leveraging LLB/buildkit as backend. It translates high-level
`.yaml` build instructions into LLB instructions.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
2020-05-27 00:18:19 +03:00
Tonis Tiigi 3f18388316 travis: avoid cleaning up container
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-05-26 09:03:21 -07:00
Akihiro Suda d6f5e972de
Merge pull request #1494 from tonistiigi/errdefs2
llb: add source tracking support
2020-05-25 23:15:20 +09:00
Akihiro Suda 7f4214f5b4
Merge pull request #1504 from anurag/ag/fix-shell-expansion
Fix shell args expansion in buildctl-daemonless.sh
2020-05-23 02:38:00 +09:00