osbuild-worker: disable the osbuild cache

We still need to figure out the garbage collection, so for now don't
enable the cache.

Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
Tom Gundersen 2019-12-11 01:50:37 +01:00 committed by Lars Karlitski
parent 22d57ff1a6
commit d55abdfd75

View file

@ -44,9 +44,15 @@ func (job *Job) Run(d distro.Distro) (*store.Image, error, []error) {
return nil, err, nil
}
tmpStore, err := ioutil.TempDir("/var/tmp", "osbuild-store")
if err != nil {
return nil, err, nil
}
defer os.RemoveAll(tmpStore)
cmd := exec.Command(
"osbuild",
"--store", "/var/cache/osbuild-composer/store",
"--store", tmpStore,
"--build-env", buildFile.Name(),
"--json", "-",
)