Commit Graph

3343 Commits (e8a3bb398f87389a85092d8867f2b207e593dd31)

Author SHA1 Message Date
Tõnis Tiigi e8a3bb398f
Merge pull request #2305 from thaJeztah/generated_go_install
generated files: use "go install" to install binaries
2021-08-13 10:00:53 -07:00
Sebastiaan van Stijn bd4b02d5a8
generated files: use "go install" to install binaries
Now that this repository moved to go1.16, we can use 'go install' to install
these binaries.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-13 16:56:57 +02:00
Akihiro Suda 533a2024f0
Merge pull request #2304 from tonistiigi/required-fix
dockerfile: fix parsing required key without value
2021-08-13 04:16:52 +09:00
Tonis Tiigi 67352249e7 dockerfile: fix parsing required key without value
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-08-12 09:46:47 -07:00
coryb 2bd37c8a7d
Merge pull request #2286 from aaronlehmann/exiterror-over-grpc
Allow ExitError type to be transmitted over GRPC
2021-08-11 15:51:23 -07:00
Tõnis Tiigi 448dfad55e
Merge pull request #2301 from aaronlehmann/contenthash-tests
Additional tests and cleanup for cache/contenthash
2021-08-11 15:34:22 -07:00
Tõnis Tiigi 175e8415e3
Merge pull request #2277 from zchee/remove-dupimport
all: remove duplicate imports
2021-08-10 23:00:36 -07:00
Aaron Lehmann de785737db Fix IncludePattern/ExcludePattern matching
The transformation to rootedPatterns seems very wrong and inconsistent
with what the copy logic did. Change it to match the copy logic, and add
more testing.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
2021-08-10 18:14:42 -07:00
Koichi Shiraishi 9e6ea26e39
golangci-lint: add go-digest importas setting
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2021-08-11 08:29:12 +09:00
Koichi Shiraishi 50ae0d8cf4
all: unify the go-digest package import alias to digest
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2021-08-11 08:29:12 +09:00
Koichi Shiraishi 414772d06e
golangci-lint: enable importas and add settings for specs-go package
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2021-08-11 08:29:12 +09:00
Koichi Shiraishi 9cc9d6c13b
hack/dockerfiles: upgrade golangci-lint version to v1.41.1
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2021-08-11 08:29:12 +09:00
Koichi Shiraishi 671ae38fb7
all: unify the specs-go package import alias to ocispecs
ocispecs means "O"pen "C"ontainer "I"nitiative image-spec/"specs"-go/v1
                      opencontainers          /image-spec/specs-go/v1

Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2021-08-11 08:29:09 +09:00
Koichi Shiraishi 14a1d6e543
all: remove duplicate imports
Signed-off-by: Koichi Shiraishi <zchee.io@gmail.com>
2021-08-11 08:28:30 +09:00
Aaron Lehmann b6ba966a68 Additional tests and cleanup for cache/contenthash
This adds a little extra testing around ** patterns, and adds a
(currently skipped) test for copying directories under symlinks (#2300).

It removes an extra call to `filepath.FromSlash` in `shouldIncludePath`
and an unused argument to that function.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
2021-08-10 14:41:03 -07:00
Tõnis Tiigi 6034f46c3e
Merge pull request #2281 from thaJeztah/replace_deprecated_pkg_signal
replace use of deprecated github.com/docker/docker/pkg/signal
2021-08-10 10:50:47 -07:00
Tõnis Tiigi 3009c7b6da
Merge pull request #2289 from afbjorklund/socketmode
Set default socket permissions to 660
2021-08-10 10:49:46 -07:00
Tõnis Tiigi fd8823e70d
Merge pull request #2290 from coryb/gateway-exec-security-mode
fix SecurityMode being dropped on gateway container Start
2021-08-10 10:49:27 -07:00
CrazyMax fc3c182171
Merge pull request #2283 from thaJeztah/fix_invalid_import_constraints
util/tracing: remove incorrect import enforcing comment
2021-08-05 05:29:23 +02:00
Sebastiaan van Stijn cea791d3fe
replace use of deprecated github.com/docker/docker/pkg/signal
This package was moved to a separate module in github.com/moby/sys/signal

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-02 12:19:45 +02:00
Sebastiaan van Stijn 2e96deeba4
go.mod: golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
In preparation of replacing the deprecated github.com/docker/docker/pkg/signal,
which uses this version (updating it separately for easier review).

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2021-08-02 12:19:37 +02:00
CrazyMax 1a7c4807cd
Merge pull request #2292 from crazy-max/update-ctnd
bump containerd from 1.5.4 to 1.5.5
2021-08-02 00:41:02 +02:00
CrazyMax 55313cc41d
bump containerd from 1.5.4 to 1.5.5
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-08-01 15:08:33 +02:00
Cory Bennett b8255fbceb fix SecurityMode being dropped on gateway container Start
Signed-off-by: Cory Bennett <cbennett@netflix.com>
2021-07-30 19:33:44 +00:00
CrazyMax e37dccd138
Merge pull request #2284 from crazy-max/fix-protoc-link
Fix protoc link
2021-07-30 18:04:16 +02:00
Anders F Björklund 75d6fc2589 Set default socket permissions to 660
The systemd default is 666, it seems.

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
2021-07-30 13:41:14 +02:00
CrazyMax a83721aa6a
Merge pull request #2285 from crazy-max/runc-update
Update to github.com/opencontainers/runc v1.0.1
2021-07-29 14:38:32 +02:00
CrazyMax 8c64153810
Merge pull request #2287 from crazy-max/cache-docs
Split cache options doc for each exporter
2021-07-29 14:37:44 +02:00
CrazyMax 10e6e6acb0
Split cache options doc for each exporter
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-29 08:12:43 +02:00
CrazyMax c9fa27d017
Update to github.com/opencontainers/runc v1.0.1
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-29 00:42:51 +02:00
Aaron Lehmann 890c3f77b6 Allow ExitError type to be transmitted over GRPC
This will allow clients to retrieve exit error codes returned during a
solve without parsing the error messages.

Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
2021-07-28 15:01:05 -07:00
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