Enhance repo creation scripts idempotency by supporting caching 69/115169/3
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Fri, 20 Nov 2020 11:51:17 +0000 (12:51 +0100)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Mon, 23 Nov 2020 07:56:24 +0000 (08:56 +0100)
commit7f8b8e7cdc41ef31a11516340aa58b28e23e2175
tree208a5ec5e0b9ee13b91453e6cb66b980463d9247
parentaefd99bf33417653d779b44a9e2365cdfd6b53ab
Enhance repo creation scripts idempotency by supporting caching

While 'yumdownloader' and 'apt-get download' commands do not
re-download packages that are already present in working dir,
scripts still need to perform package dependencies resolution
which is a time consuming activity hence a feature was added to
skip any further actions (download or deps resolution) on packages
that are already present locally.

For cold versus warm cache the gain in run time is:

       cold     warm
RPM     90s      10s
DEB     7m       90s

Change-Id: Ie502934cff6484844557832251e7ce0991789cfb
Issue-ID: OOM-2635
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
build/create_repo.sh
build/docker-entrypoint.sh