Merge pull request #594 from samalba/disable-cache-mount
Disable cache mount
This commit is contained in:
commit
d19dd4d193
@ -456,11 +456,16 @@ func (p *Pipeline) mount(ctx context.Context, dest string, mnt *compiler.Value)
|
||||
case "cache":
|
||||
return llb.AddMount(
|
||||
dest,
|
||||
llb.Scratch(),
|
||||
llb.AsPersistentCacheDir(
|
||||
p.canonicalPath(mnt),
|
||||
llb.CacheMountShared,
|
||||
llb.Scratch().File(
|
||||
llb.Mkdir("/cache", fs.FileMode(0755)),
|
||||
llb.WithCustomName(p.vertexNamef("Mkdir /cache (cache mount %s)", dest)),
|
||||
),
|
||||
// FIXME: disabled persistent cache mount (gh issue #495)
|
||||
// llb.Scratch(),
|
||||
// llb.AsPersistentCacheDir(
|
||||
// p.canonicalPath(mnt),
|
||||
// llb.CacheMountShared,
|
||||
// ),
|
||||
), nil
|
||||
case "tmpfs":
|
||||
return llb.AddMount(
|
||||
|
@ -113,10 +113,10 @@ import (
|
||||
"\(dest)": o
|
||||
// FIXME: support source path
|
||||
}
|
||||
for dest in cache {
|
||||
for dest, _ in cache {
|
||||
"\(dest)": "cache"
|
||||
}
|
||||
for dest in tmpfs {
|
||||
for dest, _ in tmpfs {
|
||||
"\(dest)": "tmpfs"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user