Dockerfile-yum.j2 doesn't copy the RPMs so yum_update.sh fails

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
This commit is contained in:
David Hill 2020-01-17 17:26:15 -05:00
parent 3c3aa68778
commit 58d7a5bc9d

View File

@ -11,6 +11,11 @@ RUN rm -rf /etc/yum.repos.d/
COPY yum.repos.d /etc/yum.repos.d
COPY repos /
{% endif %}
{% if rpms_path is defined %}
{% for rpm in rpms_list %}
COPY {{ rpm | basename }} /tmp/
{% endfor %}
{% endif %}
RUN /tmp/yum_update.sh "{{ update_repo }}"