Commit Graph

3171 Commits (6409a07898817f9ccfd7d889a961897df429ebc5)

Author SHA1 Message Date
Tõnis Tiigi 6409a07898
Merge pull request #2191 from tonistiigi/integration-ctx
integration: add common context base to all integration tests
2021-06-19 10:02:09 -07:00
Tonis Tiigi c773a215c1 integration: add common context base to all integration tests
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-18 20:49:49 -07:00
Tõnis Tiigi 573f1b1255
Merge pull request #2189 from thaJeztah/replace_deprecated_userns
replace uses of deprecated containerd/sys.RunningInUserNS()
2021-06-18 10:09:28 -07:00
Sebastiaan van Stijn c325f89fa1
replace uses of deprecated containerd/sys.RunningInUserNS()
This utility was moved to a separate package, which has no dependencies.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-18 11:14:26 +02:00
Akihiro Suda 1e623f94f5
Merge pull request #2188 from tonistiigi/go1.16-updates
Dockerfile: remove nsswitch as default in go1.16
2021-06-18 14:01:52 +09:00
Akihiro Suda 87c757fe93
Merge pull request #2187 from tonistiigi/unfork-win-arm64
remove go fork for building windows/arm64
2021-06-18 14:01:46 +09:00
Tonis Tiigi 7849ab58eb retryhandler: use net.ErrClosed for error check
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-17 16:55:37 -07:00
Tonis Tiigi 74807a1ec3 Dockerfile: remove nsswitch as default in go1.16
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-17 16:53:33 -07:00
Tonis Tiigi 9e274c79c9 remove go fork for building windows/arm64
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-17 15:41:14 -07:00
Akihiro Suda b6b07d167b
Merge pull request #2183 from tonistiigi/dockerfile-config-error
dockerfile: ensure config resolve errors keep source location
2021-06-18 00:36:50 +09:00
Tonis Tiigi 111153eafb dockerfile: ensure config resolve errors keep source location
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-16 22:16:16 -07:00
Akihiro Suda 0164c0691d
Merge pull request #2152 from tonistiigi/otel
Add opentelemetry support
2021-06-16 13:56:32 +09:00
Tonis Tiigi b10f25944b correctly validate span from context
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-15 21:11:27 -07:00
Tonis Tiigi c676959479 disable otel error logging
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-15 21:11:27 -07:00
Tonis Tiigi 9717e62b78 session: avoid tracing health checkpoint
Upstream fixes needed for cleaner solution

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-15 21:11:27 -07:00
Tonis Tiigi cfb73e5007 hack: avoid updating generated proto version
This can be done as a separate change when needed.
Also should analyze if this would affect the gogo
incompatibility issues with newer proto.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-15 21:11:27 -07:00
Tonis Tiigi 8f50bae3f1 replace opentracing with opentelemetry tracers
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-15 21:11:27 -07:00
Tonis Tiigi 292f1faf12 add support for opentelemetry
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-15 21:11:22 -07:00
Akihiro Suda 2ccc0e2dde
Merge pull request #2180 from tonistiigi/vt100-unfork
vendor: update vt100 to fork and remove replace rule
2021-06-16 12:58:05 +09:00
Tonis Tiigi b97d0f7dab vendor: update vt100 to fork and remove replace rule
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-15 19:30:51 -07:00
Tõnis Tiigi 9f254e1836
Merge pull request #2178 from tonistiigi/metadata-lock
metadata: hold lock on storageitem update
2021-06-15 09:25:40 -07:00
Tõnis Tiigi b9d5a8f09a
Merge pull request #2177 from tonistiigi/fix-prune-lock
cache: avoid concurrent maps write on prune
2021-06-15 09:24:52 -07:00
Tonis Tiigi 976b7e9a97 metadata: hold lock on storageitem update
The locks usage is mixed up because two locks separate locks
are actually needed. With a specific lock, calls to SetValue
can be protected.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-14 20:27:01 -07:00
Tonis Tiigi 5429fe1b63 cache: avoid concurrent maps write on prune
remove() needs to be called while holding the manager lock

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-14 19:26:14 -07:00
Tõnis Tiigi 6a4a14b594
Merge pull request #2171 from jedevc/remote-source-chmod
Fix file modes with remote ADD commands
2021-06-14 16:14:07 -07:00
Justin Chadwell e49dc642cf Fix file modes with remote ADD commands
Signed-off-by: Justin Chadwell <me@jedevc.com>
2021-06-14 18:52:13 +01:00
Akihiro Suda 59d2f76e5e
Merge pull request #2161 from tonistiigi/auth-context
session: make sure all token request keep correct context
2021-06-11 14:38:40 +09:00
Akihiro Suda 5648df8bcc
Merge pull request #2162 from tonistiigi/filesync-sendclose
filesync: ensure sendclose is always called
2021-06-11 14:38:13 +09:00
Tõnis Tiigi b0c769b97e
Merge pull request #2150 from thaJeztah/update_docker_master
Update docker/docker to master / v21.xx-dev (post libnetwork integration)
2021-06-10 09:27:13 -07:00
Tõnis Tiigi 4518627f4f
Merge pull request #2132 from jedevc/dockerfile-heredocs
Dockerfile heredocs
2021-06-10 09:23:04 -07:00
Tonis Tiigi fa632c5b21 dockerfile: add documentation for here-docs
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-10 08:08:17 -07:00
Tõnis Tiigi 0f9f55ff7c
Merge pull request #2165 from ktock/fixdoc
Fix doc about Stargz Snapshotter and registry authentication
2021-06-09 19:16:17 -07:00
ktock 941e1b726e Fix doc about Stargz Snapshotter and registry authentication
Signed-off-by: ktock <ktokunaga.mail@gmail.com>
2021-06-10 10:39:46 +09:00
Sebastiaan van Stijn c98d24b054
Update docker/docker to master / v21.xx-dev (post libnetwork integration)
full diff: https://github.com/docker/docker/compare/v20.10.7..0ad2293d0e5b

This applies the same / similar local changes to buildkit as were made in
the branch that moby is currently vendoring:
https://github.com/moby/buildkit/compare/244e8cde...cpuguy83:update_libnetwork_import

Unfortunately, this (again) requires a "replace" rule (probably until we tagged
a release with this change). Go mod refuses to pick a version from master, and
(without the replace rule), does weird, reverting docker to a very old version,
predating the sirupsen rename:

    > [vendored 4/4] RUN --mount=target=/src,rw   --mount=target=/go/pkg/mod,type=cache   go mod tidy && go mod vendor &&   mkdir /out && cp -r go.mod go.sum vendor /out:
    #10 0.500 go: finding github.com/docker/docker 8dbd90ec00daa26dc45d7da2431c965dec99e8b4
    #10 0.599 warning: ignoring symlink /src/examples/kube-consistent-hash
    #10 1.027 go: github.com/moby/buildkit/util/testutil/integration imports
    #10 1.027       github.com/docker/docker/testutil/daemon imports
    #10 1.027 	github.com/docker/docker/opts imports
    #10 1.027 	github.com/docker/libnetwork/ipamutils imports
    #10 1.027 	github.com/docker/libnetwork/osl imports
    #10 1.027 	github.com/Sirupsen/logrus: github.com/Sirupsen/logrus@v1.8.1: parsing go.mod:
    #10 1.027 	module declares its path as: github.com/sirupsen/logrus
    #10 1.027 	        but was required as: github.com/Sirupsen/logrus
    ------
    error: failed to solve: rpc error: code = Unknown desc = executor failed running [/bin/sh -c go mod tidy && go mod vendor &&   mkdir /out && cp -r go.mod go.sum vendor /out]: exit code: 1
    make: *** [vendor] Error 1

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-09 19:31:25 +02:00
Tõnis Tiigi 0de03b421a
Merge pull request #1733 from ktock/reghost
Enable to apply registry configuration to stargz snapshotter
2021-06-09 09:21:45 -07:00
Justin Chadwell 2d35001217 Add integration tests for dockerfile heredocs
Signed-off-by: Justin Chadwell <me@jedevc.com>
2021-06-09 10:53:25 +01:00
Justin Chadwell de7fcce614 Integrate heredoc support into ADD/COPY and RUN
This modifies the command structures to support inline files, as well as
provides the logic to compile them down into appropriate LLB
definitions.

Signed-off-by: Justin Chadwell <me@jedevc.com>
2021-06-09 10:53:25 +01:00
Justin Chadwell c362e15715 Add support for parsing heredocs in ADD/COPY and RUN
Signed-off-by: Justin Chadwell <me@jedevc.com>
2021-06-09 10:53:20 +01:00
Justin Chadwell aed6932b31 Implement low-level parser primitives for heredocs
This provides the basic functionality for the parser to recognize and
parse provided heredocs in supported commands.

Signed-off-by: Justin Chadwell <me@jedevc.com>
2021-06-09 10:45:48 +01:00
ktock 1764b3b249 Enable stargz snapshotter to use session for snapshot auth
Signed-off-by: ktock <ktokunaga.mail@gmail.com>
2021-06-09 16:10:08 +09:00
Akihiro Suda 8993c69266
Merge pull request #2159 from tonistiigi/hack-shell
add hack/shell helper for dev shell environment
2021-06-09 13:31:20 +09:00
Tonis Tiigi ce27b7e638 filesync: ensure sendclose is always called
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-08 21:19:10 -07:00
Tonis Tiigi 53e7116197 session: make sure all token request keep correct context
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-08 21:17:35 -07:00
Tonis Tiigi d44a406213 add hack/shell helper for dev shell environment
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-08 14:30:40 -07:00
Sebastiaan van Stijn 7e4e6768f3
Merge pull request #2160 from tonistiigi/fix-gosum
vendor: fix broken gosum
2021-06-08 22:11:16 +02:00
Tonis Tiigi a53e054cb6 vendor: fix broken gosum
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-06-08 11:31:48 -07:00
Tõnis Tiigi 03af083def
Merge pull request #2144 from thaJeztah/bump_golang
update to go 1.16
2021-06-08 10:30:33 -07:00
Tõnis Tiigi 884578f479
Merge pull request #2151 from thaJeztah/move_config_opt
move RegistryConfig to resolver package
2021-06-08 10:27:38 -07:00
Sebastiaan van Stijn 12c9920fb5
move RegistryConfig to resolver package
This allows using the resolver package without having to import
the buildkit daemon configuration.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-06-08 12:59:46 +02:00
Akihiro Suda 67953d67c0
Merge pull request #2155 from tonistiigi/mirror-fix
test: fix mirror cache handling
2021-06-08 14:45:37 +09:00