After implementing "yum localinstall", a critical part of the
process wasn't merged in the code which consists of copying
the actual RPMs through the Dockerfile-yum.j2 file.
Change-Id: Ifbcaa07bb80dd612e85f0d7cf8d99131fb739c84
Closes-bug: #1860184
For some reason buildah is failing on images which already have a
WORKDIR set (such as the tempest image). This change sets the WORKDIR
to / to avoid this failure.
Change-Id: Id756000a3b24eac01292907ca8837a5f99c66678
Now that the undercloud is containerized, there will be very few host
packages to compare to, so there is a high risk that required package
updates will be skipped.
This is a strategy inherited from container-update.py that was
intended to avoid unnecessary calls to yum update, however we now have
a better approach using the repoquery, so host package comparison is
no longer required, and probably causing some of the instances of bug
Change-Id: Iab7b9d6377494001d904bb84b058ea293d73110c
Partial-Bug: #1786764
Ansible copy is slow for multiple files. Using cp instead saves about
5 seconds in this case, which adds up over many images.
Change-Id: I74eedd89657bc4daddb2d45d692e1270c567705a
This patch adds a new rpm_install tasks which can be used
to build a new container layer from a set of local RPMs.
This is useful for building contains locally with no network
connectivity.
As part of the change the existing Yum update Dockerfile.j2 was
renamed to Dockerfile-yum.j2 to make it more specific.
Change-Id: I951c976ebb84c28cecefd2f5753a8232f46ad4aa