Tonis Tiigi
6a3d6e983b
source: fix puller error caching on cancellation
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-27 13:21:49 -07:00
Edgar Lee
7f0d13f9a5
Add test for second solve using rootfs of first solve that error'ed from CalcSlowCache
...
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-10-27 12:12:38 -07:00
Akihiro Suda
2b4e3448e7
Merge pull request #1746 from tonistiigi/oci-mediatypes-cache
...
remotecache: allow oci mediatypes on exporting to registry
2020-10-27 11:42:02 +09:00
Tonis Tiigi
51decbe06d
client: use containerd grpc message size defaults
...
Same defaults already used on buildkitd side
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-26 14:51:47 -07:00
Tonis Tiigi
e09d89bc95
control: split status messages if they grow big
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-26 14:51:47 -07:00
Tonis Tiigi
38ec47c981
progress: add log limits and clipping
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-26 14:51:47 -07:00
Tonis Tiigi
dcbd31e1e0
readme: document oci-mediatypes cache export option
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-26 12:13:59 -07:00
Sebastiaan van Stijn
cc7a3ded6f
Dockerfile: fix parsing of trailing backslash
...
If the line-continuation marker (`\`) is escaped, it should not be
treated as such, but as a literal backslash.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-26 12:29:05 +01:00
Sebastiaan van Stijn
e367fd69c3
TestParseCases(): fix "expected" and "actual" being reversed
...
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2020-10-26 12:27:17 +01:00
Akihiro Suda
1b1d9e88dc
Merge pull request #1747 from tonistiigi/default-shell-path
...
dockerfile: set correct default path and shell based on OS
2020-10-26 16:37:12 +09:00
Akihiro Suda
3d4fa3e55f
Merge pull request #1752 from tonistiigi/discard-buildid
...
solver: make sure job id cleared after build
2020-10-26 16:17:38 +09:00
Akihiro Suda
dec78e3316
Merge pull request #1751 from tonistiigi/debug-addons
...
debug: enable gc triggers
2020-10-26 16:01:34 +09:00
Akihiro Suda
a41fb8c48b
Merge pull request #1750 from tonistiigi/add-debug
...
Dockerfile: don’t remove debug info on buildkitd/runc binaries
2020-10-26 16:00:33 +09:00
Tonis Tiigi
cac0b68f9e
solver: make sure job id cleared after build
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-25 21:50:40 -07:00
Tonis Tiigi
34343949b9
debug: enable gc triggers
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-25 21:49:41 -07:00
Tonis Tiigi
588a149ff7
Dockerfile: don’t remove debug info on buildkitd/runc binaries
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-25 21:48:59 -07:00
Tonis Tiigi
cec6dae19d
dockerfile: add test for default shell and path
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-24 11:12:15 -07:00
Tonis Tiigi
63856b6a36
dockerfile: set default shell based on OS
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-23 15:30:23 -07:00
Tonis Tiigi
ecf070a027
exec: use platform specific default path
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-23 15:30:23 -07:00
Tonis Tiigi
8adf951bc7
remotecache: allow oci mediatypes on exporting to registry
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-23 00:20:59 -07:00
Akihiro Suda
212a0b1439
Merge pull request #1745 from tonistiigi/readonly-config
...
authprovider: allow readonly config dir
2020-10-22 18:23:30 +09:00
Tonis Tiigi
b7510f7487
authprovider: allow readonly config dir
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-21 22:12:51 -07:00
Edgar Lee
27672636fb
Merge pull request #1743 from coryb/runc-started-chan
...
update go-runc mod, use runc Started chan
2020-10-21 14:26:18 -07:00
Tõnis Tiigi
20ac10808d
Merge pull request #1744 from hinshun/parallel-contenthash
...
Enable parallelization of NewContentHashFunc
2020-10-21 14:06:21 -07:00
Cory Bennett
43d59b4aa1
update go-runc mod, use runc Started chan
...
Signed-off-by: Cory Bennett <cbennett@netflix.com>
2020-10-21 19:12:56 +00:00
Edgar Lee
cd42b669c9
Enable parallelization of NewContentHashFunc
...
Signed-off-by: Edgar Lee <edgarl@netflix.com>
2020-10-21 11:17:34 -07:00
Akihiro Suda
dda009a58c
Merge pull request #1739 from tonistiigi/empty-layer
...
clear file mount stubs and fix empty layer cases
2020-10-21 00:42:45 +09:00
Akihiro Suda
48991bf6c4
Merge pull request #1741 from coryb/runc-exiterror
...
update go-runc module, use runc.ExitError for container exec status
2020-10-20 17:14:34 +09:00
Cory Bennett
b464f1e315
update go-runc to use runc.ExitError for container exec status
...
Signed-off-by: Cory Bennett <cbennett@netflix.com>
2020-10-20 06:44:29 +00:00
Akihiro Suda
a340d4171d
Merge pull request #1730 from tonistiigi/gcr-400
...
exporter: avoid descriptor annotations on docker manifests
2020-10-20 13:49:19 +09:00
Edgar Lee
5eaecb905c
Merge pull request #1731 from coryb/issue-1714
...
add tty support for runc executor
2020-10-19 14:52:31 -07:00
Cory Bennett
74db85d357
syscall.Errno(0x5) == syscall.EIO
...
Signed-off-by: Cory Bennett <cbennett@netflix.com>
2020-10-19 21:28:39 +00:00
Tonis Tiigi
c7f5979dd4
exporter: avoid descriptor annotations on docker manifests
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-19 12:54:47 -07:00
Tõnis Tiigi
bec28f9d5b
Merge pull request #1740 from tonistiigi/stack-helper
...
stack: remove helper functions from error stack traces
2020-10-19 12:48:18 -07:00
Tonis Tiigi
c8b8d6ce63
exptypes: define empty gz layer digest
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-18 23:39:23 -07:00
Tonis Tiigi
f9d7f1cf4a
exporter: don’t keep timestamp for empty layer
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-18 23:39:23 -07:00
Tonis Tiigi
85dd12d875
remotecache: don’t export cache for empty layers
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-18 23:39:23 -07:00
Tonis Tiigi
17b4ca1edf
executor: remove stub files from rootfs
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-18 23:39:17 -07:00
Tonis Tiigi
ca46949277
stack: remove helper functions from error stack traces
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2020-10-18 23:36:38 -07:00
Tõnis Tiigi
4f3fb6155a
Merge pull request #1659 from tonistiigi/loop-export-fix
...
remotecache: validate out broken links from loops
2020-10-18 22:01:54 -07:00
Tõnis Tiigi
6bd06f333c
Merge pull request #1738 from kees/fix/exec-stack
...
Update binfmt_misc tests to have non-executable stack
2020-10-17 23:25:05 -07:00
Kees Cook
fd11490560
Update binfmt_misc tests to have non-executable stack
...
Fix : #1737
On Linux v5.6+ docker start-up would trigger the exec-stack warning:
process 'docker/tmp/qemu-check490284163/check' started with executable stack
Mark all the binfmt_mist tests as having a non-executable stack, and
regenerate the *_binary.go files.
Additionally fix trailing whitespace and add missing end-of-file newlines.
Signed-off-by: Kees Cook <keescook@chromium.org>
2020-10-17 22:53:27 -07:00
Cory Bennett
cb12a5642f
shutdown container process when context is done
...
Signed-off-by: Cory Bennett <cbennett@netflix.com>
2020-10-17 06:53:25 +00:00
Cory Bennett
4d265f5d22
refactor tty output tests to avoid flakey sleeps
...
Signed-off-by: Cory Bennett <cbennett@netflix.com>
2020-10-17 06:52:06 +00:00
Cory Bennett
e308ef7874
add tty support for runc executor
...
Signed-off-by: Cory Bennett <cbennett@netflix.com>
2020-10-16 17:36:56 +00:00
Tõnis Tiigi
ebd98bcbe6
Merge pull request #1339 from jingxiaolu/issue1301
...
Add hostname specifying for building
2020-10-15 23:07:51 -07:00
Tõnis Tiigi
be424a99ea
Merge pull request #1728 from earthly/vlad/authorizer-errors
...
Prevent context canceled errors from being permanent in authorizer
2020-10-15 17:46:14 -07:00
Vlad A. Ionescu
d127edf990
Prevent context canceled errors from being permanent in authorizer
...
Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
Check if context is canceled before returning cached token or err.
Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
Fix possible race conditions
Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
Fix block
Signed-off-by: Vlad A. Ionescu <vladaionescu@users.noreply.github.com>
2020-10-15 15:11:59 -07:00
Lu Jingxiao
059dac1e05
tests: Adding tests for hostname specifying for building
...
Adding tests to for hostname specifying for image building
Cover: #1301
Signed-off-by: Lu Jingxiao <lujingxiao@huawei.com>
2020-10-14 15:36:47 +08:00
Lu Jingxiao
5e7ae230b2
Add hostname specifying for building
...
Fix : #1301
Signed-off-by: Lu Jingxiao <lujingxiao@huawei.com>
2020-10-14 14:45:36 +08:00