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
CrazyMax
03048216e3
Merge pull request #1974 from tonistiigi/github-actions-cache
...
cache backend for github actions
2021-07-11 18:43:21 +02:00
Tonis Tiigi
b1c80cf0ab
caps: add cap for gha cache backend
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-09 20:49:26 -07:00
Tonis Tiigi
be6de5138b
vendor: add goactionscache
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-09 20:49:24 -07:00
Tonis Tiigi
fb63228bd3
initial version of github cache
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-09 20:48:51 -07:00
Tonis Tiigi
fde33b94b6
github: update CI buildkit to v0.9.0-rc1
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-09 11:47:13 -07:00
Tõnis Tiigi
4367890e51
Merge pull request #2234 from tonistiigi/token-eaccess
...
authprovider: handle eaccess on storing token seeds
2021-07-09 11:23:01 -07:00
Tõnis Tiigi
b93b5b62d1
Merge pull request #2235 from morlay/log-with-tracing
...
log should with traceID and spanID
2021-07-08 22:55:50 -07:00
Morlay
1ed2d45894
log with traceID and spanID
...
Signed-off-by: Morlay <morlay.null@gmail.com>
2021-07-09 12:53:57 +08:00
Tonis Tiigi
3233c5275a
authprovider: handle eaccess on storing token seeds
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-08 21:37:03 -07:00
Tõnis Tiigi
64dd6d5520
Merge pull request #2231 from sipsma/fix-2226
...
Ignore missing providers for blobs w/ same chainid.
2021-07-07 10:54:40 -07:00
Tõnis Tiigi
f02412098f
Merge pull request #2229 from masibw/meaningless_encode
...
Remove meaningless encode
2021-07-07 10:52:38 -07:00
Tõnis Tiigi
9df59934cd
Merge pull request #2218 from tonistiigi/error-suggest
...
dockerfile: add suggestions to how to fix certain errors
2021-07-07 10:52:07 -07:00
Erik Sipsma
026d6d62d8
Ignore missing providers for blobs w/ same chainid.
...
GetByBlob checks to see if there are any other blobs with the same
(uncompressed) ChainID and, if so, reuses their unpacked snapshot if it
exists.
The problem is if this code finds a match, it was trying to get the
matching record, but couldn't do so when the match is lazy because the
caller doesn't necessarily have descriptor handlers setup for it.
This commit changes the behavior to just ignore any match with the same
ChainID that's also lazy as they just aren't usable for the
snapshot-reuse optimization.
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
2021-07-07 15:56:02 +00:00
Yamazaki Masashi
8a4efe4de7
Remove meaningless encode
...
Signed-off-by: Yamazaki Masashi <masi19bw@gmail.com>
2021-07-08 00:01:42 +09:00
Akihiro Suda
6076d93cdf
Merge pull request #2228 from tonistiigi/git-default-branch
...
[carry] Automatically detect default git branch
2021-07-07 15:53:19 +09:00
Tõnis Tiigi
6802f708ef
Merge pull request #2224 from masibw/full_timestamp
...
Add full timestamp to logs
2021-07-06 23:15:53 -07:00
Tõnis Tiigi
b055d2d55c
Merge pull request #2057 from ktock/export-compression
...
exporter: Enable to specify the compression type for all layers of the finally exported image
2021-07-06 21:52:36 -07:00
masibw
a114c1a0ea
Add full timestamp to logs
...
Signed-off-by: Yamazaki Masashi <masi19bw@gmail.com>
2021-07-07 13:46:45 +09:00
Akihiro Suda
f7452db24e
Merge pull request #2227 from tonistiigi/run-network
...
dockerfile: move run network to stable channel
2021-07-07 13:01:02 +09:00
ktock
3152eab58f
Enable to forcefully specify compression type
...
Signed-off-by: ktock <ktokunaga.mail@gmail.com>
2021-07-07 12:00:06 +09:00
Tonis Tiigi
fb32dad95b
git: fix default branch detection
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-06 16:34:43 -07:00
Levi Harrison
2a8e0b11cd
Fix tests
...
Unfortunately, further test cases will have to be removed because gitindentifier will now leave the branch blank instead of filling it in
Signed-off-by: Levi Harrison <levisamuelharrison@gmail.com>
2021-07-06 15:38:12 -07:00
Levi Harrison
ccc9f20895
Moved getDefaultBranch function to gitsource
...
It is my suspecion that the tests were failing on previous commits because of the lack of authentication and other stuff like that available in gitidentifier as compared to gitsource
Signed-off-by: Levi Harrison <levisamuelharrison@gmail.com>
2021-07-06 15:38:00 -07:00
Levi Harrison
8604d7cef2
Automatically detect default git branch
...
Instead of just assuming that the default branch is master, use ls-remote to find out. Also removed tests that didn't specifiy a branch but required authentication, because those will fail now that the repo is actually checked.
Signed-off-by: Levi Harrison <levisamuelharrison@gmail.com>
2021-07-06 15:37:31 -07:00
Tonis Tiigi
259fba7d43
dockerfile: move run network to stable channel
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-06 15:25:29 -07:00
Tõnis Tiigi
5fc0b3c30a
Merge pull request #2225 from crazy-max/binfmt-6.0.0
...
Update QEMU emulators
2021-07-06 13:41:50 -07:00
CrazyMax
9825801fd7
Update QEMU emulators
...
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2021-07-06 21:26:21 +02:00
Tõnis Tiigi
4f9ea010c0
Merge pull request #2222 from tonistiigi/riscv
...
enable riscv64 build
2021-07-06 09:34:22 -07:00
Tonis Tiigi
05ac5df7bc
enable riscv64 build
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-05 01:06:47 -07:00
Tonis Tiigi
4e4152832c
dockerfile: remove unnecessary error wrappings
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-02 17:29:32 -07:00
Tonis Tiigi
de5e10864d
dockerfile: add tests for error suggestions
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-02 17:29:32 -07:00
Tonis Tiigi
df9781b46c
dockerfile: provide suggestions for mount options
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-02 17:29:32 -07:00
Tonis Tiigi
768a12bd0d
dockerfile: suggest mistyped flag names
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-02 17:29:32 -07:00
Tonis Tiigi
277517e2a3
add error suggest pkg
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2021-07-02 17:29:27 -07:00
Akihiro Suda
1a7543a105
Merge pull request #2163 from tonistiigi/detect-otel-env
2021-07-03 01:01:34 +09:00
Akihiro Suda
9cf28dcf26
Merge pull request #2182 from tonistiigi/seek-radix
...
contenthash: use SeekLowerBound to seek radix tree
2021-07-02 14:29:44 +09:00
Tõnis Tiigi
f5c34a05b8
Merge pull request #2047 from thaJeztah/improve_errors
...
Remove duplicate "not found" from some error messages
2021-07-01 21:36:33 -07:00
Erik Sipsma
3c4f73768b
Merge pull request #2217 from sipsma/fileop-ref-leak
...
Fix ref leak if fileop ref fails to mount.
2021-07-01 17:38:55 -07:00
Erik Sipsma
f3604724d4
Fix ref leak if fileop ref fails to mount.
...
Signed-off-by: Erik Sipsma <erik@sipsma.dev>
2021-07-01 23:38:13 +00:00
Tõnis Tiigi
7d386663ec
Merge pull request #2216 from sipsma/cleancache
...
Remove unneeded Finalize method from ImmutableRef.
2021-07-01 16:35:33 -07:00