Commit Graph

3512 Commits (5872bf3dd16461a5d44e1e3d563418c594557782)

Author SHA1 Message Date
CrazyMax da34b88a9a
Fix protoc link
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-28 19:13:16 +02:00
CrazyMax 1ba8f965c1
Merge pull request #2280 from moby/dependabot/go_modules/github.com/containerd/containerd-1.5.4
build(deps): bump github.com/containerd/containerd from 1.5.3 to 1.5.4
2021-07-28 19:03:50 +02:00
Sebastiaan van Stijn dcb25c53b8
util/tracing: remove incorrect import enforcing comment
This import comment caused compilation of buildx to fail if `GO111MODULE` was
set to `off`:

Without `GO111MODULE` set (but with `-mod=vendor`:

    echo $GO111MODULE

    export PKG=github.com/docker/buildx
    export LDFLAGS="-X ${PKG}/version.Version=$(git describe --match 'v[0-9]*' --always --tags) -X ${PKG}/version.Revision=$(git rev-parse HEAD) -X ${PKG}/version.Package=${PKG}"
    GOFLAGS=-mod=vendor go build -o bin/docker-buildx -ldflags "${LDFLAGS}" ./cmd/buildx
    bin/docker-buildx version
    github.com/docker/buildx v0.6.0 d9ee3b134cbc2d09513fa7fee4176a3919e05887

When setting `GO111MODULE=off`, it fails on the incorrect import path in the
vendored file (looks like GO111MODULE=on ignores import-path comments?):

    export GO111MODULE=off
    root@5a55ec1c1eed:/go/src/github.com/docker/buildx# GOFLAGS=-mod=vendor go build -o bin/docker-buildx -ldflags "${LDFLAGS}" ./cmd/buildx
    vendor/github.com/moby/buildkit/client/client.go:20:2: code in directory /go/src/github.com/docker/buildx/vendor/github.com/moby/buildkit/util/tracing/otlptracegrpc expects import "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
    vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/connection/connection.go:33:2: found import comments "go.opentelemetry.io/otel/exporters/otlp/internal/otlpconfig" (options.go) and "go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlpconfig" (optiontypes.go) in /go/src/github.com/docker/buildx/vendor/go.opentelemetry.io/otel/exporters/otlp/otlptrace/internal/otlpconfig

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-07-28 13:09:49 +02:00
dependabot[bot] d5047b3d2a
build(deps): bump github.com/containerd/containerd from 1.5.3 to 1.5.4
Bumps [github.com/containerd/containerd](https://github.com/containerd/containerd) from 1.5.3 to 1.5.4.
- [Release notes](https://github.com/containerd/containerd/releases)
- [Changelog](https://github.com/containerd/containerd/blob/main/RELEASES.md)
- [Commits](https://github.com/containerd/containerd/compare/v1.5.3...v1.5.4)

---
updated-dependencies:
- dependency-name: github.com/containerd/containerd
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-26 21:37:20 +00:00
Sebastiaan van Stijn 54302c477b
Merge pull request #2278 from crazy-max/codecov
Bump to codecov/codecov-action v2
2021-07-26 09:50:12 +02:00
CrazyMax af15a8afe2
Bump to codecov/codecov-action v2
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-25 14:01:58 +02:00
Tõnis Tiigi b2195cec75
Merge pull request #2244 from crazy-max/gha-cache-doc
GitHub Actions cache docs
2021-07-19 19:08:15 -07:00
Akihiro Suda 94c0e9d2b9
Merge pull request #2267 from tonistiigi/dockerfile-1.3-update
Update Dockerfile references to use 1.3
2021-07-20 11:06:20 +09:00
Akihiro Suda ed19fe92c2
Merge pull request #2268 from tonistiigi/images-readme-1.3
docs: update images-readme to v0.9
2021-07-20 11:05:47 +09:00
Tõnis Tiigi aa217249da
Merge pull request #2266 from tonistiigi/add-maintainers
add ktock and crazy-max to maintainers
2021-07-19 18:13:52 -07:00
Tonis Tiigi 53c79de828 docs: update images-readme to v0.9
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-19 13:57:17 -07:00
Tonis Tiigi a5b6c20c38 Update Dockerfile references to use 1.3
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-19 13:54:15 -07:00
Tonis Tiigi 5c0103d4ed add ktock and crazy-max to maintainers
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-19 12:20:51 -07:00
Akihiro Suda 1879325ec5
Merge pull request #2264 from tonistiigi/config-docs 2021-07-17 20:11:53 +09:00
Akihiro Suda 6c63764054
Merge pull request #2262 from tonistiigi/ci-0.9 2021-07-17 20:11:20 +09:00
Tonis Tiigi 454a9c3230 add docs for new config options
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-16 20:35:28 -07:00
Tonis Tiigi 7fefd8449a github: update CI buildkit to v0.9.0
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-16 20:19:24 -07:00
Tõnis Tiigi c8bb937807
Merge pull request #2261 from tonistiigi/daemonless-wait
daemonless: wait for daemon to finish before exit
2021-07-15 20:11:23 -07:00
Tonis Tiigi 9f0236add1 daemonless: wait for daemon to finish before exit
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-15 19:38:01 -07:00
Tõnis Tiigi dc397eae4a
Merge pull request #2238 from tonistiigi/http-tracing
tracing: update to otelhttp roundtripper
2021-07-15 19:35:03 -07:00
Tõnis Tiigi 3790ea3f71
Merge pull request #2259 from tonistiigi/conn-limit2
new implementation for limiting tcp connections
2021-07-15 19:34:39 -07:00
Tõnis Tiigi 4b01f8cc94
Merge pull request #2260 from crazy-max/typo
Exporter config digest typo
2021-07-15 18:51:12 -07:00
CrazyMax f4a67d7e9c
Exporter config digest typo
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-15 20:42:36 +02:00
Tonis Tiigi 30188347a3 contentutil: change offset to int64 to simplify
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-15 00:01:30 -07:00
Akihiro Suda 66d30551db
Merge pull request #2242 from tonistiigi/idle-conns
resolver: increase default idle conns reuse
2021-07-15 13:44:52 +09:00
Tonis Tiigi eaa3e100eb ensure wrappers support seeking to continue partial downloads
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-14 20:41:10 -07:00
Tonis Tiigi dc37a052b4 limited: allow extra high-priority connection for json requests
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-14 20:41:10 -07:00
Tonis Tiigi f269d00f28 new implementation for limiting tcp connections
The previous implementation had many issues. Eg. on fetch, even if
the data already existed and no remote connections were needed
the request would still be waiting in the queue. Or if two fetches
of same blob happened together they would take up two places in queue
although there was only one remote request.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-14 20:41:02 -07:00
Tõnis Tiigi a1818323d4
Merge pull request #2254 from coryb/issue-2248
fix dropped pull progress output due to canceled context
2021-07-14 19:19:04 -07:00
Tõnis Tiigi d2d18d5b5f
Merge pull request #2255 from aaronlehmann/export-layers-span
Add span for layer export
2021-07-14 15:11:08 -07:00
Aaron Lehmann 87dcc7bbe2 Add span for layer export
This can be a significant amount of time that isn't currently accounted
for in traces.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
2021-07-14 11:27:08 -07:00
coryb de0019bf35 fix dropped pull progress output due to canceled context
fixes #2248

Signed-off-by: coryb <cbennett@netflix.com>
2021-07-14 09:11:44 -07:00
Tõnis Tiigi 699121c00a
Merge pull request #2232 from crazy-max/ci-test-matrix
Enhance test matrix
2021-07-14 08:57:43 -07:00
CrazyMax 67c1cb09ed
Enhance test matrix
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-14 17:06:20 +02:00
Tonis Tiigi 5a318dd017 tracing: update to otelhttp roundtripper
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-13 23:29:03 -07:00
Akihiro Suda 2a4577efab
Merge pull request #2253 from tonistiigi/update-go-actions
vendor: update go-actions-cache with custom client support
2021-07-14 15:27:40 +09:00
Akihiro Suda 9269ec5c95
Merge pull request #2247 from tonistiigi/transfer-semaphore
add per domain semaphore to limit concurrent connections
2021-07-14 15:27:12 +09:00
Tõnis Tiigi 3ac0e10c0b
Merge pull request #2252 from coryb/containerd-v1.5.3
update to github.com/containerd/containerd v1.5.3
2021-07-13 21:18:47 -07:00
Tonis Tiigi b7f4e34ad8 vendor: update go-actions-cache with custom client support
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-13 20:47:31 -07:00
coryb 34c43145fc update to github.com/containerd/containerd v1.5.3
Signed-off-by: coryb <cbennett@netflix.com>
2021-07-13 18:56:55 -07:00
Tonis Tiigi a558ac4cce add per domain semaphore to limit concurrent connections
This is a safer alternative until we figure out why
http.Transport based limiting fails.

Some connections like cache export/import do not have a
domain key atm and these connections use global pool.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-13 14:08:03 -07:00
Tõnis Tiigi d3cd28f59f
Merge pull request #2249 from claudiubelu/fixes-missing-passwd-file
Skips getting UID/GUID if passwd/group file is not found
2021-07-13 13:57:11 -07:00
Claudiu Belu 449d010a72 Skips getting UID/GUID if passwd/group file is not found
When running a WORKDIR instruction, buildkit will create that folder
and chown it to the currently set user. For this, it will try to read
the /etc/passwd file to get the proper UID, and if that user is not
found in the file, the root user will be considered as the owner.

However, Windows image do not have that file, which will result in
an error while building the image. We can consider not finding
the /etc/passwd file as the same as not finding the user in the file,
which would solve this issue.

Signed-off-by: Claudiu Belu <cbelu@cloudbasesolutions.com>
2021-07-13 19:06:33 +00:00
CrazyMax b9d7315ea2
GitHub Actions cache docs
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-13 18:39:21 +02:00
Tõnis Tiigi 06e8602caa
Merge pull request #2236 from morlay/master
refactor to use `util/bklog.G(ctx)` instead `logrus.` directly
2021-07-13 00:25:22 -07:00
Akihiro Suda 1018595476
Merge pull request #2241 from tonistiigi/tracetransform-rm
remove tracetransform package
2021-07-13 12:47:26 +09:00
Morlay 18b49fd7dc refactor to use util/bklog instead of using logurs directly
Signed-off-by: Morlay <morlay.null@gmail.com>
2021-07-13 11:42:31 +08:00
Tonis Tiigi 782010121e resolver: increase default idle conns reuse
The current default were even lower than stdlib defaults.

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-12 00:29:30 -07:00
Tonis Tiigi 936df190af remove tracetransform package
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-11 20:22:43 -07:00
Akihiro Suda 3f0d4a4662
Merge pull request #2237 from tonistiigi/ci-rc
github: update CI buildkit to v0.9.0-rc1
2021-07-12 03:24:04 +09:00