Introduce lock for installation

It is used to ensure integrity and that we do install one package at
once. This is to ensure that we extract correctly, and that we are not
too much I/O intensive depending on CPU
This commit is contained in:
Ettore Di Giacinto
2021-10-24 09:20:26 +02:00
parent 6b7e77df65
commit 4a45b5410d
2 changed files with 14 additions and 18 deletions

View File

@@ -161,13 +161,8 @@ RUN echo bar > /test2`))
_, _, err = image.ExtractTo(
ctx,
img,
resultingImage,
image.ExtractFiles(
ctx,
"",
[]string{},
[]string{},
),
result,
nil,
)
Expect(err).ToNot(HaveOccurred())
@@ -215,13 +210,8 @@ RUN echo bar > /test2`))
_, _, err = image.ExtractTo(
ctx,
img,
resultingImage,
image.ExtractFiles(
ctx,
"",
[]string{},
[]string{},
),
result,
nil,
)
Expect(err).ToNot(HaveOccurred())