Yuichiro Kaneko
936aa64061
Use `ProcessWord(s)WithMap` to avoid string contatination and string split
...
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-20 19:41:15 +09:00
Yuichiro Kaneko
5b70c51b7d
Add test cases for `toEnvList`
...
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-20 19:31:43 +09:00
Yuichiro Kaneko
75118c8a82
Add Map version `ProcessWords`
...
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-20 19:01:31 +09:00
Tõnis Tiigi
97b3652136
Merge pull request #522 from tonistiigi/llb-secrets
...
llbsolver: add secret mounts support
2018-07-19 23:29:08 -07:00
Tonis Tiigi
08d324d0dd
exec: fix secret mounts for rootless
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-19 22:02:11 -07:00
Tonis Tiigi
53f657a5db
client: add secret mounts test
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-19 22:02:11 -07:00
Tonis Tiigi
378df8cbaa
llb: add secrets support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-19 22:02:11 -07:00
Tonis Tiigi
2da2aff164
llbsolver: add secret mounts
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-19 22:02:05 -07:00
Tibor Vass
71e3c24df1
Merge pull request #517 from tonistiigi/llb-caps
...
llb: add caps support
2018-07-19 17:21:50 -07:00
Tõnis Tiigi
a890def252
Merge pull request #519 from yui-knk/extract_parseKeyValue
...
Extract parsing logic of "key=val" as `parseKeyValue`
2018-07-19 15:59:58 -07:00
Yuichiro Kaneko
83dc829222
Extract parsing logic of "key=val" as `parseKeyValue`
...
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-19 21:36:07 +09:00
Tõnis Tiigi
db8b382274
Merge pull request #518 from yui-knk/add_test_for_addEnv
...
Add test cases for `addEnv` which is a bit complicated function
2018-07-18 22:41:39 -07:00
Akihiro Suda
1be4a5891d
Merge pull request #516 from yui-knk/update_comment_Parse
...
Add a description about metaArgs return value
2018-07-19 12:16:37 +09:00
Yuichiro Kaneko
f79f28cf83
Add test cases for `addEnv` which is a bit complicated function
...
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-19 09:39:22 +09:00
Tonis Tiigi
c8cb8127c3
gateway: validate LLB capabilities
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-18 17:22:30 -07:00
Tonis Tiigi
aa3aef3c25
llbsolver: validate llb caps
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-18 17:22:30 -07:00
Tonis Tiigi
d4c57aec5d
llb: add caps support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-18 17:22:30 -07:00
Yuichiro Kaneko
93e3b15854
`s/docker file/Dockerfile/`
...
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-19 07:38:58 +09:00
Tõnis Tiigi
f45ad4e9f1
Merge pull request #515 from yui-knk/remove_dispatchEnv_call
...
Refactoring dispatchEnv
2018-07-18 10:22:10 -07:00
Yuichiro Kaneko
ee15340993
Add a description about metaArgs return value
...
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-18 22:32:15 +09:00
Yuichiro Kaneko
fb499edc5b
Omit needless argument `commit` from `dispatchEnv`
...
Always `dispatchEnv` is called `commit` with `true`.
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-18 21:38:37 +09:00
Yuichiro Kaneko
5838f9e763
Simplify `State` setup
...
On this code `dispatchEnv` is called with `commit = false`,
so this call do these 2 things
* `AddEnv` to `d.state`
* `addEnv` to update `d.image.Config.Env`
But updating `d.image.Config.Env` has no effect on `d.image.Config.Env`
because this is in for-loop of `range d.image.Config.Env`.
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-18 21:29:55 +09:00
Akihiro Suda
198465299c
Merge pull request #512 from tonistiigi/followpaths
...
local: add followpaths to the cache key
2018-07-18 11:20:58 +09:00
Akihiro Suda
cfdaec6039
Merge pull request #514 from tonistiigi/include-platform-cache
...
imagemetaresolver: use platform in cache
2018-07-18 11:20:00 +09:00
Tõnis Tiigi
f89a5394d8
Merge pull request #513 from yui-knk/useProcessWordWithMap
...
Use `ProcessWordWithMap` in simple cases
2018-07-17 18:38:16 -07:00
Tonis Tiigi
c9df92f4c5
imagemetaresolver: use platform in cache
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-17 18:36:32 -07:00
Yuichiro Kaneko
c9038a2f5d
Use `ProcessWordWithMap` in simple cases
...
In the case when the second argument of `toEnvList` is `nil`,
we can use `ProcessWordWithMap` and avoid string contatination
and string split.
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-18 08:54:18 +09:00
Tonis Tiigi
132d08a1cc
local: add followpaths to the cache key
...
FollowPaths is a special case of IncludePatterns and
should behave same way.
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-17 15:38:50 -07:00
Tibor Vass
628681f8e4
Merge pull request #511 from tonistiigi/containerd-vendor
...
vendor: update containerd to fb1084d9
2018-07-17 11:46:48 -07:00
Tonis Tiigi
fde47cc113
buildkitd: seed math rand
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-17 11:22:51 -07:00
Tonis Tiigi
8331b9b2c6
vendor: update containerd to fb1084d9
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-17 11:22:44 -07:00
Akihiro Suda
56e2ea083a
Merge pull request #510 from tonistiigi/win-differ-support
...
diff: implement windows layer support for linux
2018-07-17 11:29:54 +09:00
Tonis Tiigi
bc765861be
diff: implement windows layer support for linux
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-16 16:33:21 -07:00
Tõnis Tiigi
847422b1a8
Merge pull request #508 from tonistiigi/containerd-platforms
...
buildkitd: allow custom worker platforms for containerd
2018-07-16 16:00:18 -07:00
Tõnis Tiigi
248920d3ba
Merge pull request #509 from tonistiigi/llb-source-platform
...
llb: don't fill platform on static sources
2018-07-16 16:00:03 -07:00
Tõnis Tiigi
64511e0ebf
Merge pull request #505 from yui-knk/use_string_map
...
Add `ProcessWordWithMap` to `Lex`
2018-07-16 15:36:34 -07:00
Tonis Tiigi
1456a3f165
llb: don't fill platform on static sources
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-16 15:27:03 -07:00
Tõnis Tiigi
0ed17949eb
Merge pull request #507 from tonistiigi/config-platform
...
image: fix platform passing on config resolve
2018-07-16 14:24:44 -07:00
Tõnis Tiigi
e32d96e4a6
Merge pull request #506 from tonistiigi/update-fsutil
...
vendor: update fsutil to cb2ad947b
2018-07-16 14:24:24 -07:00
Tonis Tiigi
d86efeb63a
buildkitd: allow custom worker platforms for containerd
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-16 13:54:59 -07:00
Tonis Tiigi
b3572c6648
image: fix platform passing on config resolve
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-16 13:51:58 -07:00
Tonis Tiigi
5c3cfe5553
vendor: update fsutil to cb2ad947b
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-16 13:47:24 -07:00
Yuichiro Kaneko
8715fbf6bf
Add string map version ProcessWord to Lex
...
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-16 17:49:28 +09:00
Yuichiro Kaneko
6583105db9
Use strings map instead of slice of string in `shellWord`
...
Signed-off-by: Yuichiro Kaneko <spiketeika@gmail.com>
2018-07-16 17:46:28 +09:00
Akihiro Suda
98f1604134
Merge pull request #496 from tonistiigi/caps2
...
gateway: update client and allow map return
2018-07-13 14:50:55 +09:00
Tonis Tiigi
303b5da713
llbsolver: use result type with multi ref support
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-12 17:52:23 -07:00
Tonis Tiigi
c3a29cce8b
gateway: implementation for return
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-12 17:51:44 -07:00
Tonis Tiigi
95d944cc31
gateway: use return in grpcclient
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-12 17:51:44 -07:00
Tonis Tiigi
01b7a29e86
gateway: return result from solve
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-12 17:51:44 -07:00
Tonis Tiigi
9684362cb0
frontend: move forwarder under gateway
...
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2018-07-12 17:50:19 -07:00