opendevstack / ods-pipeline-image

ODS Pipeline tasks for container image packaging
Apache License 2.0
0 stars 0 forks source link

improve image creation time in ods-package-image task #2

Open stitakis opened 2 years ago

stitakis commented 2 years ago

Can we benefit from local cache to improve image creation time? This ticket is for evaluating this.

This post analyses how to use improve performance by mounting a volume to the containers that run buildah. https://developers.redhat.com/blog/2019/08/14/best-practices-for-running-buildah-in-a-container?intcmp=701f20000012ngPAAQ#running_buildah_inside_a_container

It looks like a better approach would be if buildah could use as cache layer in remote storage. This buildah issue proposes this but is currently open: https://github.com/containers/buildah/issues/3382

michaelsauter commented 2 years ago

Thanks for opening this separately!

I would like to get some data first around why this is necessary as I am not convinced yet that we need it at all. Which use cases do we have where image build is slow?

michaelsauter commented 9 months ago

Transferring as a consequence of https://github.com/opendevstack/ods-pipeline/pull/722.