Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Acb/update buildkit #53

Merged
merged 350 commits into from
Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
350 commits
Select commit Hold shift + click to select a range
dc86c52
dockerfile: fix git version detection
tonistiigi Jun 28, 2021
bb6f11c
Merge pull request #2208 from tonistiigi/dockerfile-version
AkihiroSuda Jun 29, 2021
5ad1ff3
Add support for heredocs with ONBUILD
jedevc Jun 29, 2021
ee39f5d
dockerfile: use none differ for dockerfile/dockerignore
tonistiigi Apr 21, 2021
921b0de
Merge pull request #2209 from jedevc/dockerfile-heredocs-onbuild
tonistiigi Jun 30, 2021
be8ab28
Merge pull request #2081 from tonistiigi/local-differ-none
AkihiroSuda Jul 1, 2021
600d283
progressui: print logs for failed step as summary in plain mode
tonistiigi Jul 1, 2021
460ba75
grpcerrors: avoid rpc error wrapping in error messages
tonistiigi Jul 1, 2021
a27d7c3
exec: improve error message on exec errors
tonistiigi Jul 1, 2021
8d70a9e
Merge pull request #2215 from tonistiigi/improve-errors
AkihiroSuda Jul 1, 2021
edc28d1
Merge pull request #2214 from tonistiigi/plain-error-logs
AkihiroSuda Jul 1, 2021
ec1bfc8
Improve heredoc parsing to allow more generic words
jedevc Jun 30, 2021
c99b558
Improve progress and history messages for heredoc-related commands
jedevc Jun 25, 2021
b85ef15
Remove unneeded Finalize method from ImmutableRef.
sipsma Jul 1, 2021
5840ec0
Merge pull request #2213 from jedevc/dockerfile-heredoc-parsing
tonistiigi Jul 1, 2021
521727e
Merge pull request #2201 from jedevc/dockerfile-heredocs-progress
tonistiigi Jul 1, 2021
7d38666
Merge pull request #2216 from sipsma/cleancache
tonistiigi Jul 1, 2021
f360472
Fix ref leak if fileop ref fails to mount.
sipsma Jul 1, 2021
3c4f737
Merge pull request #2217 from sipsma/fileop-ref-leak
sipsma Jul 2, 2021
f5c34a0
Merge pull request #2047 from thaJeztah/improve_errors
tonistiigi Jul 2, 2021
9cf28dc
Merge pull request #2182 from tonistiigi/seek-radix
AkihiroSuda Jul 2, 2021
1a7543a
Merge pull request #2163 from tonistiigi/detect-otel-env
AkihiroSuda Jul 2, 2021
277517e
add error suggest pkg
tonistiigi Jul 2, 2021
768a12b
dockerfile: suggest mistyped flag names
tonistiigi Jul 2, 2021
df9781b
dockerfile: provide suggestions for mount options
tonistiigi Jul 2, 2021
de5e108
dockerfile: add tests for error suggestions
tonistiigi Jul 2, 2021
4e41528
dockerfile: remove unnecessary error wrappings
tonistiigi Jul 2, 2021
05ac5df
enable riscv64 build
tonistiigi Jul 5, 2021
4f9ea01
Merge pull request #2222 from tonistiigi/riscv
tonistiigi Jul 6, 2021
9825801
Update QEMU emulators
crazy-max Jul 6, 2021
5fc0b3c
Merge pull request #2225 from crazy-max/binfmt-6.0.0
tonistiigi Jul 6, 2021
259fba7
dockerfile: move run network to stable channel
tonistiigi Jul 6, 2021
8604d7c
Automatically detect default git branch
LeviHarrison Mar 7, 2021
ccc9f20
Moved getDefaultBranch function to gitsource
LeviHarrison Mar 13, 2021
2a8e0b1
Fix tests
LeviHarrison Mar 13, 2021
fb32dad
git: fix default branch detection
tonistiigi Jul 6, 2021
3152eab
Enable to forcefully specify compression type
ktock Mar 30, 2021
f7452db
Merge pull request #2227 from tonistiigi/run-network
AkihiroSuda Jul 7, 2021
a114c1a
Add full timestamp to logs
masibw Jul 6, 2021
b055d2d
Merge pull request #2057 from ktock/export-compression
tonistiigi Jul 7, 2021
6802f70
Merge pull request #2224 from masibw/full_timestamp
tonistiigi Jul 7, 2021
6076d93
Merge pull request #2228 from tonistiigi/git-default-branch
AkihiroSuda Jul 7, 2021
8a4efe4
Remove meaningless encode
masibw Jul 7, 2021
026d6d6
Ignore missing providers for blobs w/ same chainid.
sipsma Jul 7, 2021
9df5993
Merge pull request #2218 from tonistiigi/error-suggest
tonistiigi Jul 7, 2021
f024120
Merge pull request #2229 from masibw/meaningless_encode
tonistiigi Jul 7, 2021
64dd6d5
Merge pull request #2231 from sipsma/fix-2226
tonistiigi Jul 7, 2021
3233c52
authprovider: handle eaccess on storing token seeds
tonistiigi Jul 9, 2021
1ed2d45
log with traceID and spanID
morlay Jul 9, 2021
b93b5b6
Merge pull request #2235 from morlay/log-with-tracing
tonistiigi Jul 9, 2021
4367890
Merge pull request #2234 from tonistiigi/token-eaccess
tonistiigi Jul 9, 2021
fde33b9
github: update CI buildkit to v0.9.0-rc1
tonistiigi Jul 9, 2021
fb63228
initial version of github cache
tonistiigi Feb 6, 2021
be6de51
vendor: add goactionscache
tonistiigi Feb 6, 2021
b1c80cf
caps: add cap for gha cache backend
tonistiigi Mar 22, 2021
0304821
Merge pull request #1974 from tonistiigi/github-actions-cache
crazy-max Jul 11, 2021
3f0d4a4
Merge pull request #2237 from tonistiigi/ci-rc
AkihiroSuda Jul 11, 2021
936df19
remove tracetransform package
tonistiigi Jul 12, 2021
7820101
resolver: increase default idle conns reuse
tonistiigi Jul 12, 2021
18b49fd
refactor to use util/bklog instead of using logurs directly
morlay Jul 9, 2021
1018595
Merge pull request #2241 from tonistiigi/tracetransform-rm
AkihiroSuda Jul 13, 2021
06e8602
Merge pull request #2236 from morlay/master
tonistiigi Jul 13, 2021
b9d7315
GitHub Actions cache docs
crazy-max Jul 13, 2021
449d010
Skips getting UID/GUID if passwd/group file is not found
claudiubelu Jul 13, 2021
d3cd28f
Merge pull request #2249 from claudiubelu/fixes-missing-passwd-file
tonistiigi Jul 13, 2021
a558ac4
add per domain semaphore to limit concurrent connections
tonistiigi Jul 13, 2021
34c4314
update to github.com/containerd/containerd v1.5.3
coryb Jul 14, 2021
b7f4e34
vendor: update go-actions-cache with custom client support
tonistiigi Jul 14, 2021
3ac0e10
Merge pull request #2252 from coryb/containerd-v1.5.3
tonistiigi Jul 14, 2021
9269ec5
Merge pull request #2247 from tonistiigi/transfer-semaphore
AkihiroSuda Jul 14, 2021
2a4577e
Merge pull request #2253 from tonistiigi/update-go-actions
AkihiroSuda Jul 14, 2021
5a318dd
tracing: update to otelhttp roundtripper
tonistiigi Jul 10, 2021
67c1cb0
Enhance test matrix
crazy-max Jul 14, 2021
699121c
Merge pull request #2232 from crazy-max/ci-test-matrix
tonistiigi Jul 14, 2021
de0019b
fix dropped pull progress output due to canceled context
coryb Jul 14, 2021
87dcc7b
Add span for layer export
aaronlehmann Jul 14, 2021
d2d18d5
Merge pull request #2255 from aaronlehmann/export-layers-span
tonistiigi Jul 14, 2021
a181832
Merge pull request #2254 from coryb/issue-2248
tonistiigi Jul 15, 2021
f269d00
new implementation for limiting tcp connections
tonistiigi Jul 15, 2021
dc37a05
limited: allow extra high-priority connection for json requests
tonistiigi Jul 15, 2021
eaa3e10
ensure wrappers support seeking to continue partial downloads
tonistiigi Jul 15, 2021
66d3055
Merge pull request #2242 from tonistiigi/idle-conns
AkihiroSuda Jul 15, 2021
3018834
contentutil: change offset to int64 to simplify
tonistiigi Jul 15, 2021
f4a67d7
Exporter config digest typo
crazy-max Jul 15, 2021
4b01f8c
Merge pull request #2260 from crazy-max/typo
tonistiigi Jul 16, 2021
3790ea3
Merge pull request #2259 from tonistiigi/conn-limit2
tonistiigi Jul 16, 2021
dc397ea
Merge pull request #2238 from tonistiigi/http-tracing
tonistiigi Jul 16, 2021
9f0236a
daemonless: wait for daemon to finish before exit
tonistiigi Jul 16, 2021
c8bb937
Merge pull request #2261 from tonistiigi/daemonless-wait
tonistiigi Jul 16, 2021
7fefd84
github: update CI buildkit to v0.9.0
tonistiigi Jul 16, 2021
454a9c3
add docs for new config options
tonistiigi Jul 17, 2021
6c63764
Merge pull request #2262 from tonistiigi/ci-0.9
AkihiroSuda Jul 17, 2021
1879325
Merge pull request #2264 from tonistiigi/config-docs
AkihiroSuda Jul 17, 2021
5c0103d
add ktock and crazy-max to maintainers
tonistiigi Jul 19, 2021
a5b6c20
Update Dockerfile references to use 1.3
tonistiigi Jul 19, 2021
53c79de
docs: update images-readme to v0.9
tonistiigi Jul 19, 2021
aa21724
Merge pull request #2266 from tonistiigi/add-maintainers
tonistiigi Jul 20, 2021
ed19fe9
Merge pull request #2268 from tonistiigi/images-readme-1.3
AkihiroSuda Jul 20, 2021
94c0e9d
Merge pull request #2267 from tonistiigi/dockerfile-1.3-update
AkihiroSuda Jul 20, 2021
b2195ce
Merge pull request #2244 from crazy-max/gha-cache-doc
tonistiigi Jul 20, 2021
af15a8a
Bump to codecov/codecov-action v2
crazy-max Jul 25, 2021
54302c4
Merge pull request #2278 from crazy-max/codecov
thaJeztah Jul 26, 2021
d5047b3
build(deps): bump github.com/containerd/containerd from 1.5.3 to 1.5.4
dependabot[bot] Jul 26, 2021
dcb25c5
util/tracing: remove incorrect import enforcing comment
thaJeztah Jul 28, 2021
1ba8f96
Merge pull request #2280 from moby/dependabot/go_modules/github.com/c…
crazy-max Jul 28, 2021
da34b88
Fix protoc link
crazy-max Jul 28, 2021
890c3f7
Allow ExitError type to be transmitted over GRPC
aaronlehmann Jul 28, 2021
c9fa27d
Update to github.com/opencontainers/runc v1.0.1
crazy-max Jul 28, 2021
10e6e6a
Split cache options doc for each exporter
crazy-max Jul 29, 2021
8c64153
Merge pull request #2287 from crazy-max/cache-docs
crazy-max Jul 29, 2021
a83721a
Merge pull request #2285 from crazy-max/runc-update
crazy-max Jul 29, 2021
75d6fc2
Set default socket permissions to 660
afbjorklund Jul 30, 2021
e37dccd
Merge pull request #2284 from crazy-max/fix-protoc-link
crazy-max Jul 30, 2021
b8255fb
fix SecurityMode being dropped on gateway container Start
coryb Jul 30, 2021
55313cc
bump containerd from 1.5.4 to 1.5.5
crazy-max Aug 1, 2021
1a7c480
Merge pull request #2292 from crazy-max/update-ctnd
crazy-max Aug 1, 2021
2e96dee
go.mod: golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c
thaJeztah Jul 27, 2021
cea791d
replace use of deprecated github.com/docker/docker/pkg/signal
thaJeztah Jul 27, 2021
fc3c182
Merge pull request #2283 from thaJeztah/fix_invalid_import_constraints
crazy-max Aug 5, 2021
fd8823e
Merge pull request #2290 from coryb/gateway-exec-security-mode
tonistiigi Aug 10, 2021
3009c7b
Merge pull request #2289 from afbjorklund/socketmode
tonistiigi Aug 10, 2021
6034f46
Merge pull request #2281 from thaJeztah/replace_deprecated_pkg_signal
tonistiigi Aug 10, 2021
b6ba966
Additional tests and cleanup for cache/contenthash
aaronlehmann Aug 10, 2021
14a1d6e
all: remove duplicate imports
zchee Jul 25, 2021
671ae38
all: unify the specs-go package import alias to ocispecs
zchee Jul 26, 2021
9cc9d6c
hack/dockerfiles: upgrade golangci-lint version to v1.41.1
zchee Jul 26, 2021
414772d
golangci-lint: enable importas and add settings for specs-go package
zchee Jul 26, 2021
50ae0d8
all: unify the go-digest package import alias to digest
zchee Jul 26, 2021
9e6ea26
golangci-lint: add go-digest importas setting
zchee Jul 26, 2021
de78573
Fix IncludePattern/ExcludePattern matching
aaronlehmann Aug 11, 2021
175e841
Merge pull request #2277 from zchee/remove-dupimport
tonistiigi Aug 11, 2021
448dfad
Merge pull request #2301 from aaronlehmann/contenthash-tests
tonistiigi Aug 11, 2021
2bd37c8
Merge pull request #2286 from aaronlehmann/exiterror-over-grpc
coryb Aug 11, 2021
6735224
dockerfile: fix parsing required key without value
tonistiigi Aug 12, 2021
533a202
Merge pull request #2304 from tonistiigi/required-fix
AkihiroSuda Aug 12, 2021
bd4b02d
generated files: use "go install" to install binaries
thaJeztah Aug 13, 2021
e8a3bb3
Merge pull request #2305 from thaJeztah/generated_go_install
tonistiigi Aug 13, 2021
e4e4bf3
util/stack: update protoc options to work with newer versions
thaJeztah Aug 13, 2021
f6ac37d
Merge pull request #2307 from thaJeztah/prepare_protobuf_update
AkihiroSuda Aug 14, 2021
0b683eb
add missing ExtraHosts to gateway exec
coryb Aug 3, 2021
2893203
add gateway.exec.extrahosts capability
coryb Aug 15, 2021
7658c78
Merge pull request #2294 from coryb/gateway-exec-extra-hosts
tonistiigi Aug 16, 2021
23ec516
cache: Fix flightcontrol use in computeBlobChain.
sipsma Jul 21, 2021
808091a
solver: include cachemap index in flightcontrol.
sipsma Jul 21, 2021
4237175
pull: use resolvemode in flightcontrol key.
sipsma Jul 21, 2021
b087e19
util: remove outdated flightcontrol test assertion.
sipsma Jul 21, 2021
124126e
Merge pull request #2273 from sipsma/fix-2270
tonistiigi Aug 16, 2021
ac61da5
update go to 1.17
tonistiigi Aug 17, 2021
2d18f3a
gomod: update to go1.17
tonistiigi Aug 17, 2021
7fa9e57
Merge pull request #2312 from tonistiigi/go1.17
AkihiroSuda Aug 17, 2021
56c0981
Follow links in includedPaths to resolve incorrect caching when sourc…
aaronlehmann Aug 18, 2021
0e62515
cmd/buildkitd: replace BurntSushi/toml with pelletier/go-toml
thaJeztah Aug 20, 2021
5cfe388
control: fix 64bit alignment for buildcount
tonistiigi Aug 20, 2021
99368b8
Merge pull request #2324 from tonistiigi/64bit-align-buildcount
tonistiigi Aug 20, 2021
8021a3e
Use fixed fileutils matching functions
aaronlehmann Aug 18, 2021
d71e905
Merge pull request #2322 from thaJeztah/replace_toml
AkihiroSuda Aug 23, 2021
f314c4b
Merge pull request #2319 from aaronlehmann/use-fixed-matching-functions
tonistiigi Aug 23, 2021
f8d30d5
Add `estargz` compression type
ktock Jul 26, 2021
94e9d15
Merge pull request #2246 from ktock/esgzcompression
AkihiroSuda Aug 25, 2021
a9f1980
Refactor cache metadata interface.
sipsma Jul 9, 2021
89ebbe5
Merge pull request #2316 from sipsma/rm-info
tonistiigi Aug 25, 2021
d782dd8
Use containerd/pkg/seccomp.IsEnabled()
thaJeztah Aug 27, 2021
9462a23
Merge pull request #2338 from thaJeztah/containerd_seccomp_check
tonistiigi Aug 30, 2021
d586efd
Compute diff from the upper dir of overlayfs-based snapshotter
ktock Aug 30, 2021
f59c759
go.mod: github.com/moby/term v0.0.0-20210619224110-3f7ff695adc6
thaJeztah Sep 2, 2021
ebd5157
Merge pull request #2342 from thaJeztah/bump_moby_term
tonistiigi Sep 2, 2021
cf80727
Merge pull request #2181 from ktock/overlaydiff
tonistiigi Sep 2, 2021
8f2bd90
go.mod: split the indirect packages
zchee Aug 25, 2021
9b010e7
Merge pull request #2331 from zchee/gomod-fmt-117
tonistiigi Sep 3, 2021
8b5c4d7
exporter: support creating blobs with zstd compression
tonistiigi Sep 5, 2021
a5e0b86
update getremote test for zstd
tonistiigi Sep 7, 2021
ea773f6
Merge pull request #2344 from tonistiigi/zstd
AkihiroSuda Sep 7, 2021
ddd18de
Add test case for symlink which is not final path component before wi…
aaronlehmann Sep 7, 2021
9c67257
hack: allow mounting in workdir in shell
tonistiigi Sep 7, 2021
98f54ff
Handle the case of multiple path component symlinks (including last c…
aaronlehmann Sep 7, 2021
91d2f2d
Merge pull request #2349 from tonistiigi/shell-workdir
AkihiroSuda Sep 8, 2021
e9e6cec
Use getFollowLinksWalked
aaronlehmann Sep 8, 2021
f5eb400
Merge pull request #2318 from aaronlehmann/follow-links-includedpaths
tonistiigi Sep 8, 2021
0f52917
bklog: only log tracing ids when span exporter not nil
morlay Sep 8, 2021
e07f388
Merge pull request #2351 from morlay/log-fix
tonistiigi Sep 9, 2021
8bb242e
Refactor url redacting util
crazy-max Sep 14, 2021
252d7ca
Merge pull request #2363 from crazy-max/urlutil
tonistiigi Sep 14, 2021
35fcb28
Clean up old TODOs
tonistiigi Sep 15, 2021
8f2e691
Merge pull request #2364 from tonistiigi/todo-clean
AkihiroSuda Sep 15, 2021
3fd4338
Move config parsing to a dedicated pkg
crazy-max Sep 17, 2021
5fcc944
Generate and embed build sources
crazy-max Sep 17, 2021
6bd2eb5
resolver: use different mutext for handlers and hosts
tonistiigi Sep 19, 2021
f62bb55
resolver: make sure authorizer is not overwritten on other resolvers
tonistiigi Sep 19, 2021
161b581
solver: increase timeout for job registration
tonistiigi Sep 19, 2021
d211b5a
go.mod: sort and move self-managed indirect dependencies to first block
zchee Sep 6, 2021
a0afb69
Merge pull request #2311 from crazy-max/buildsources
tonistiigi Sep 20, 2021
7fb8e74
Merge pull request #2361 from crazy-max/move-config
tonistiigi Sep 20, 2021
e878d4d
Merge pull request #2348 from zchee/gomod-resort
tonistiigi Sep 20, 2021
44891f4
Merge pull request #2369 from tonistiigi/resolver-timeout-fixes
AkihiroSuda Sep 21, 2021
2c540bd
Fix issues #1980 and #2198
jgiannuzzi Sep 15, 2021
e5ecbf9
Add BUILDKIT_SANDBOX_HOSTNAME build-arg
crazy-max Sep 21, 2021
4997b57
Merge pull request #2373 from crazy-max/buildarg-hostname
tonistiigi Sep 21, 2021
da821a4
Fix estargz compression loses the original tar metadata
ktock Sep 7, 2021
165e705
Enhance ANSI color for progress ui
crazy-max Sep 23, 2021
ec787d9
Merge pull request #2352 from ktock/esgzcvt-preserve-tar
AkihiroSuda Sep 24, 2021
deb1440
Merge pull request #2372 from jgiannuzzi/fix-issue-2198
tonistiigi Sep 24, 2021
1031116
Merge pull request #2368 from crazy-max/ansi-color
crazy-max Sep 24, 2021
73625be
Move resolver config to a dedicated package
crazy-max Sep 27, 2021
3f1152f
Standard user umask for git process
crazy-max Sep 27, 2021
23c8aff
Merge pull request #2377 from crazy-max/resolver-config
crazy-max Sep 27, 2021
509b73d
Merge pull request #2356 from crazy-max/git-umask
tonistiigi Sep 28, 2021
c38341f
make sure ci runs on version branches
tonistiigi Feb 24, 2021
e839ff7
Merge pull request #2380 from tonistiigi/release-ci
AkihiroSuda Sep 28, 2021
b6d092d
return an error instead of panicking when failing to get edge
maxlaverse Sep 28, 2021
b8e4ed1
Merge pull request #2382 from venturehacks/panic_failed_to_get_edge
tonistiigi Sep 30, 2021
6094339
Add support for shm size
crazy-max Oct 1, 2021
42aefeb
Merge pull request #2384 from crazy-max/shmsize
crazy-max Oct 1, 2021
dad6751
gha: handle already exist error on save
tonistiigi Oct 2, 2021
e76cfcf
don't cast Value when pipe is errored
maxlaverse Oct 1, 2021
d429b0b
Merge pull request #2385 from venturehacks/panic_failed_to_get_edge
tonistiigi Oct 2, 2021
066a011
gha: handle missing blob gracefully
tonistiigi Oct 2, 2021
c13f5de
solver: make sure previous error gets reset
tonistiigi Oct 2, 2021
25d5c1f
vendor: update go-actions-cache to 4d48f2ff
tonistiigi Oct 2, 2021
4f3e74c
Differ: write diff to the content store over bufio writer
ktock Sep 16, 2021
9ffd7f2
Do not enable overlayfs differ for fuse-overlayfs-snapshotter
ktock Oct 4, 2021
ee1ad68
Merge pull request #2390 from ktock/overlaydiff-fuse-overlayfs
tonistiigi Oct 4, 2021
10947b0
Merge pull request #2388 from ktock/containerd-overlaydiff-bufcopy
AkihiroSuda Oct 4, 2021
78e8856
Merge pull request #2387 from tonistiigi/gha-fixes
tonistiigi Oct 4, 2021
5c27a53
Converter: make sure uncompressed digest annotation is set
ktock Oct 5, 2021
ec65f41
Use gha cache on CI
crazy-max Aug 3, 2021
6d396b9
Creating tcp socket without using go-connections.
Oct 5, 2021
91ecc99
Merge pull request #2393 from ktock/converter-uncompressed-annotation
tonistiigi Oct 5, 2021
b2ff444
Merge pull request #2243 from crazy-max/gha-cache
tonistiigi Oct 5, 2021
7153f5a
limited: fix possible deadlock when pushhandler calls fetcher
tonistiigi Oct 7, 2021
b8462c3
Merge pull request #2403 from tonistiigi/push-deadlock
AkihiroSuda Oct 7, 2021
6813db9
README.md: improve "Building multi-platform images" section
AkihiroSuda Oct 6, 2021
4e32ae5
Add support for ulimit
crazy-max Oct 8, 2021
c46f7ad
Merge pull request #2399 from AkihiroSuda/update-multiplatform-docs
tonistiigi Oct 8, 2021
7671a84
Merge pull request #2398 from crazy-max/ulimit
tonistiigi Oct 8, 2021
ba673bb
Merge pull request #2395 from jmacelroy/master
tonistiigi Oct 8, 2021
4cec7a0
solver: fix exporters unsafely sharing records
tonistiigi Oct 9, 2021
a5d1cfc
fix: provide only available capabilities to insecure environment
smira Oct 5, 2021
cbf808f
Merge pull request #2394 from smira/insecure-capabilities
tonistiigi Oct 16, 2021
1c51e87
client: allow setting custom dialer for session endpoint
tonistiigi Oct 18, 2021
9dd4ec0
Merge pull request #2419 from tonistiigi/session-dialer
AkihiroSuda Oct 18, 2021
87e1fa7
add size to tmpfs mounts
crazy-max Oct 18, 2021
32d95c8
deduplicate mounts
crazy-max Oct 17, 2021
41c0a18
Merge pull request #2411 from crazy-max/tpmfs-size
tonistiigi Oct 18, 2021
954c472
use bytes as given size for tmpfs mount
crazy-max Oct 19, 2021
94378a8
use `opts.MemBytes` for tmpfs size run mount instruction
crazy-max Oct 19, 2021
8778943
Merge pull request #2422 from crazy-max/fix-tmpfs-size
crazy-max Oct 19, 2021
f352ee8
Merge pull request #2410 from tonistiigi/exporter-sync-fix
AkihiroSuda Oct 21, 2021
3adb271
Re-add Finalize method to ImmutableRef.
sipsma Oct 25, 2021
33fb83e
Merge pull request #2425 from sipsma/refinalize
tonistiigi Oct 25, 2021
4a0195f
Merge remote-tracking branch 'earthly/earthly-main' into HEAD
alexcb Oct 26, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
157 changes: 38 additions & 119 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@ on:
pull_request:
branches:
- 'master'
- 'v*'

env:
REPO_SLUG_ORIGIN: "moby/buildkit:latest"
REPO_SLUG_TARGET: "moby/buildkit"
DF_REPO_SLUG_TARGET: "docker/dockerfile-upstream"
PLATFORMS: "linux/amd64,linux/arm/v7,linux/arm64,linux/s390x,linux/ppc64le,linux/riscv64"
CACHEKEY_INTEGRATION_TESTS: "integration-tests"
CACHEKEY_BINARIES: "binaries"
CACHEKEY_CROSS: "cross"
CACHE_GHA_SCOPE_IT: "integration-tests"
CACHE_GHA_SCOPE_BINARIES: "binaries"
CACHE_GHA_SCOPE_CROSS: "cross"

jobs:
base:
Expand All @@ -31,21 +32,8 @@ jobs:
name: Checkout
uses: actions/checkout@v2
-
name: Cache ${{ env.CACHEKEY_INTEGRATION_TESTS }}
uses: actions/cache@v2
with:
path: /tmp/.buildkit-cache/${{ env.CACHEKEY_INTEGRATION_TESTS }}
key: ${{ runner.os }}-buildkit-${{ env.CACHEKEY_INTEGRATION_TESTS }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit-${{ env.CACHEKEY_INTEGRATION_TESTS }}-
-
name: Cache ${{ env.CACHEKEY_BINARIES }}
uses: actions/cache@v2
with:
path: /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }}
key: ${{ runner.os }}-buildkit-${{ env.CACHEKEY_BINARIES }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit-${{ env.CACHEKEY_BINARIES }}-
name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v1
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -54,28 +42,21 @@ jobs:
uses: docker/setup-buildx-action@v1
with:
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
buildkitd-flags: --debug
-
name: Build ${{ env.CACHEKEY_BINARIES }}
name: Build ${{ env.CACHE_GHA_SCOPE_BINARIES }}
run: |
./hack/build_ci_first_pass binaries
env:
CACHEDIR_FROM: /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }}
CACHEDIR_TO: /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }}-new
CACHE_FROM: type=gha,scope=${{ env.CACHE_GHA_SCOPE_BINARIES }}
CACHE_TO: type=gha,scope=${{ env.CACHE_GHA_SCOPE_BINARIES }}
-
name: Build ${{ env.CACHEKEY_INTEGRATION_TESTS }}
name: Build ${{ env.CACHE_GHA_SCOPE_IT }}
run: |
./hack/build_ci_first_pass integration-tests
env:
CACHEDIR_FROM: /tmp/.buildkit-cache/${{ env.CACHEKEY_INTEGRATION_TESTS }}
CACHEDIR_TO: /tmp/.buildkit-cache/${{ env.CACHEKEY_INTEGRATION_TESTS }}-new
-
# FIXME: Temp fix for https://github.com/moby/buildkit/issues/1850
name: Move cache
run: |
rm -rf /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }}
mv /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }}-new /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }}
rm -rf /tmp/.buildkit-cache/${{ env.CACHEKEY_INTEGRATION_TESTS }}
mv /tmp/.buildkit-cache/${{ env.CACHEKEY_INTEGRATION_TESTS }}-new /tmp/.buildkit-cache/${{ env.CACHEKEY_INTEGRATION_TESTS }}
CACHE_FROM: type=gha,scope=${{ env.CACHE_GHA_SCOPE_IT }}
CACHE_TO: type=gha,scope=${{ env.CACHE_GHA_SCOPE_IT }}

test:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -108,21 +89,8 @@ jobs:
name: Checkout
uses: actions/checkout@v2
-
name: Cache ${{ env.CACHEKEY_INTEGRATION_TESTS }}
uses: actions/cache@v2
with:
path: /tmp/.buildkit-cache/${{ env.CACHEKEY_INTEGRATION_TESTS }}
key: ${{ runner.os }}-buildkit-${{ env.CACHEKEY_INTEGRATION_TESTS }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit-${{ env.CACHEKEY_INTEGRATION_TESTS }}-
-
name: Cache ${{ env.CACHEKEY_BINARIES }}
uses: actions/cache@v2
with:
path: /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }}
key: ${{ runner.os }}-buildkit-${{ env.CACHEKEY_BINARIES }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit-${{ env.CACHEKEY_BINARIES }}-
name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v1
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -131,6 +99,7 @@ jobs:
uses: docker/setup-buildx-action@v1
with:
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
buildkitd-flags: --debug
-
name: Test pkg=${{ matrix.pkg }} ; typ=${{ matrix.typ }} ; skipit=${{ matrix.skip-integration-tests }} ; worker=${{ matrix.worker }}
run: |
Expand All @@ -144,7 +113,7 @@ jobs:
TEST_COVERAGE: 1
TESTPKGS: ${{ matrix.pkg }}
SKIP_INTEGRATION_TESTS: ${{ matrix.skip-integration-tests }}
CACHEDIR_FROM: /tmp/.buildkit-cache/${{ env.CACHEKEY_INTEGRATION_TESTS }} /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }}
CACHE_FROM: type=gha,scope=${{ env.CACHE_GHA_SCOPE_IT }} type=gha,scope=${{ env.CACHE_GHA_SCOPE_BINARIES }}
-
name: Upload coverage file
uses: actions/upload-artifact@v2
Expand Down Expand Up @@ -235,13 +204,8 @@ jobs:
name: Checkout
uses: actions/checkout@v2
-
name: Cache ${{ env.CACHEKEY_CROSS }}
uses: actions/cache@v2
with:
path: /tmp/.buildkit-cache/${{ env.CACHEKEY_CROSS }}
key: ${{ runner.os }}-buildkit-${{ env.CACHEKEY_CROSS }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit-${{ env.CACHEKEY_CROSS }}-
name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v1
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -250,21 +214,16 @@ jobs:
uses: docker/setup-buildx-action@v1
with:
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
buildkitd-flags: --debug
-
name: Cross
run: |
./hack/cross
env:
PLATFORMS: ${{ env.PLATFORMS }},darwin/amd64,darwin/arm64,windows/amd64,windows/arm64
RUNC_PLATFORMS: ${{ env.PLATFORMS }}
CACHEDIR_FROM: /tmp/.buildkit-cache/${{ env.CACHEKEY_CROSS }}
CACHEDIR_TO: /tmp/.buildkit-cache/${{ env.CACHEKEY_CROSS }}-new
-
# FIXME: Temp fix for https://github.com/moby/buildkit/issues/1850
name: Move cache
run: |
rm -rf /tmp/.buildkit-cache/${{ env.CACHEKEY_CROSS }}
mv /tmp/.buildkit-cache/${{ env.CACHEKEY_CROSS }}-new /tmp/.buildkit-cache/${{ env.CACHEKEY_CROSS }}
CACHE_FROM: type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }}
CACHE_TO: type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }}

release-base:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -304,21 +263,8 @@ jobs:
name: Checkout
uses: actions/checkout@v2
-
name: Cache image${{ matrix.target-stage }}
uses: actions/cache@v2
with:
path: /tmp/.buildkit-cache/image${{ matrix.target-stage }}
key: ${{ runner.os }}-buildkit-image${{ matrix.target-stage }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit-image${{ matrix.target-stage }}-
-
name: Cache ${{ env.CACHEKEY_CROSS }}
uses: actions/cache@v2
with:
path: /tmp/.buildkit-cache/${{ env.CACHEKEY_CROSS }}
key: ${{ runner.os }}-buildkit-${{ env.CACHEKEY_CROSS }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit-${{ env.CACHEKEY_CROSS }}-
name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v1
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -327,6 +273,7 @@ jobs:
uses: docker/setup-buildx-action@v1
with:
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
buildkitd-flags: --debug
-
name: Login to DockerHub
if: needs.release-base.outputs.push == 'push'
Expand All @@ -340,14 +287,8 @@ jobs:
./hack/images "${{ needs.release-base.outputs.tag }}" "$REPO_SLUG_TARGET" "${{ needs.release-base.outputs.push }}"
env:
TARGET: ${{ matrix.target-stage }}
CACHEDIR_FROM: /tmp/.buildkit-cache/${{ env.CACHEKEY_CROSS }} /tmp/.buildkit-cache/image${{ matrix.target-stage }}
CACHEDIR_TO: /tmp/.buildkit-cache/image${{ matrix.target-stage }}-new
-
# FIXME: Temp fix for https://github.com/moby/buildkit/issues/1850
name: Move cache
run: |
rm -rf /tmp/.buildkit-cache/image${{ matrix.target-stage }}
mv /tmp/.buildkit-cache/image${{ matrix.target-stage }}-new /tmp/.buildkit-cache/image${{ matrix.target-stage }}
CACHE_FROM: type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }} type=gha,scope=image${{ matrix.target-stage }}
CACHE_TO: type=gha,scope=image${{ matrix.target-stage }}

binaries:
runs-on: ubuntu-latest
Expand All @@ -357,21 +298,8 @@ jobs:
name: Checkout
uses: actions/checkout@v2
-
name: Cache ${{ env.CACHEKEY_BINARIES }}
uses: actions/cache@v2
with:
path: /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }}
key: ${{ runner.os }}-buildkit-${{ env.CACHEKEY_BINARIES }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit-${{ env.CACHEKEY_BINARIES }}-
-
name: Cache ${{ env.CACHEKEY_CROSS }}
uses: actions/cache@v2
with:
path: /tmp/.buildkit-cache/${{ env.CACHEKEY_CROSS }}
key: ${{ runner.os }}-buildkit-${{ env.CACHEKEY_CROSS }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit-${{ env.CACHEKEY_CROSS }}-
name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v1
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -380,13 +308,14 @@ jobs:
uses: docker/setup-buildx-action@v1
with:
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
buildkitd-flags: --debug
-
name: Build ${{ needs.release-base.outputs.tag }}
run: |
./hack/release-tar "${{ needs.release-base.outputs.tag }}" release-out
env:
PLATFORMS: ${{ env.PLATFORMS }},darwin/amd64,darwin/arm64,windows/amd64,windows/arm64
CACHEDIR_FROM: /tmp/.buildkit-cache/${{ env.CACHEKEY_BINARIES }} /tmp/.buildkit-cache/${{ env.CACHEKEY_CROSS }}
CACHE_FROM: type=gha,scope=${{ env.CACHE_GHA_SCOPE_BINARIES }} type=gha,scope=${{ env.CACHE_GHA_SCOPE_CROSS }}
-
name: Move artifacts
run: |
Expand Down Expand Up @@ -443,6 +372,9 @@ jobs:
-
name: Checkout
uses: actions/checkout@v2
-
name: Expose GitHub Runtime
uses: crazy-max/ghaction-github-runtime@v1
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
Expand All @@ -451,14 +383,7 @@ jobs:
uses: docker/setup-buildx-action@v1
with:
driver-opts: image=${{ env.REPO_SLUG_ORIGIN }}
-
name: Cache layers
uses: actions/cache@v2
with:
path: /tmp/.buildkit-cache/frontend-${{ needs.frontend-base.outputs.typ }}
key: ${{ runner.os }}-buildkit-frontend-${{ needs.frontend-base.outputs.typ }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildkit-frontend-${{ needs.frontend-base.outputs.typ }}-
buildkitd-flags: --debug
-
name: Login to DockerHub
uses: docker/login-action@v1
Expand All @@ -471,18 +396,12 @@ jobs:
run: |
./frontend/dockerfile/cmd/dockerfile-frontend/hack/release "${{ needs.frontend-base.outputs.typ }}" "${{ needs.frontend-base.outputs.tag }}" "$DF_REPO_SLUG_TARGET" "${{ needs.frontend-base.outputs.push }}"
env:
CACHEDIR_FROM: /tmp/.buildkit-cache/frontend-${{ needs.frontend-base.outputs.typ }}
CACHEDIR_TO: /tmp/.buildkit-cache/frontend-${{ needs.frontend-base.outputs.typ }}-new
CACHE_FROM: type=gha,scope=frontend-${{ needs.frontend-base.outputs.typ }}
CACHE_TO: type=gha,scope=frontend-${{ needs.frontend-base.outputs.typ }}
-
name: Build ${{ needs.frontend-base.outputs.typ }}/labs
if: needs.frontend-base.outputs.typ == 'master'
run: |
./frontend/dockerfile/cmd/dockerfile-frontend/hack/release "${{ needs.frontend-base.outputs.typ }}" labs "$DF_REPO_SLUG_TARGET" "${{ needs.frontend-base.outputs.push }}"
env:
CACHEDIR_FROM: /tmp/.buildkit-cache/frontend-${{ needs.frontend-base.outputs.typ }}
-
# FIXME: Temp fix for https://github.com/moby/buildkit/issues/1850
name: Move cache
run: |
rm -rf /tmp/.buildkit-cache/frontend-${{ needs.frontend-base.outputs.typ }}
mv /tmp/.buildkit-cache/frontend-${{ needs.frontend-base.outputs.typ }}-new /tmp/.buildkit-cache/frontend-${{ needs.frontend-base.outputs.typ }}
CACHE_FROM: type=gha,scope=frontend-${{ needs.frontend-base.outputs.typ }}
1 change: 1 addition & 0 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
pull_request:
branches:
- 'master'
- 'v*'

env:
REPO_SLUG_ORIGIN: "moby/buildkit:latest"
Expand Down
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ You don't need to read this document unless you want to use the full-featured st
- [Local directory](#local-directory-1)
- [GitHub Actions cache (experimental)](#github-actions-cache-experimental)
- [Consistent hashing](#consistent-hashing)
- [Metadata](#metadata)
- [Systemd socket activation](#systemd-socket-activation)
- [Expose BuildKit as a TCP service](#expose-buildkit-as-a-tcp-service)
- [Load balancing](#load-balancing)
Expand Down Expand Up @@ -230,8 +231,9 @@ Keys supported by image output:
* `unpack=true`: unpack image after creation (for use with containerd)
* `dangling-name-prefix=[value]`: name image with `prefix@<digest>` , used for anonymous images
* `name-canonical=true`: add additional canonical name `name@<digest>`
* `compression=[uncompressed,gzip,estargz]`: choose compression type for layers newly created and cached, gzip is default value. estargz should be used with `oci-mediatypes=true`.
* `compression=[uncompressed,gzip,estargz,zstd]`: choose compression type for layers newly created and cached, gzip is default value. estargz should be used with `oci-mediatypes=true`.
* `force-compression=true`: forcefully apply `compression` option to all layers (including already existing layers).
* `buildinfo=[all,imageconfig,metadata,none]`: choose [build dependency](docs/build-repro.md#build-dependencies) version to export (default `all`).

If credentials are required, `buildctl` will attempt to read Docker configuration file `$DOCKER_CONFIG/config.json`.
`$DOCKER_CONFIG` defaults to `~/.docker`.
Expand Down Expand Up @@ -416,7 +418,7 @@ To output build metadata such as the image digest, pass the `--metadata-file` fl
The metadata will be written as a JSON object to the specified file.
The directory of the specified file must already exist and be writable.

```
```bash
buildctl build ... --metadata-file metadata.json
```

Expand Down Expand Up @@ -545,7 +547,7 @@ Please refer to [`docs/rootless.md`](docs/rootless.md).

## Building multi-platform images

See [`docker buildx` documentation](https://github.com/docker/buildx#building-multi-platform-images)
Please refer to [`docs/multi-platform.md`](docs/multi-platform.md).

## Contributing

Expand Down
23 changes: 11 additions & 12 deletions api/services/control/control.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion api/services/control/control.proto
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ message VertexStatus {
string name = 3;
int64 current = 4;
int64 total = 5;
// TODO: add started, completed
google.protobuf.Timestamp timestamp = 6 [(gogoproto.stdtime) = true, (gogoproto.nullable) = false];
google.protobuf.Timestamp started = 7 [(gogoproto.stdtime) = true ];
google.protobuf.Timestamp completed = 8 [(gogoproto.stdtime) = true ];
Expand Down
Loading