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:
parent
22d57ff1a6
commit
d55abdfd75
1 changed files with 7 additions and 1 deletions
|
|
@ -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", "-",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue