From 58d7a5bc9d73daf8fda032c5c19110ec298e5bbd Mon Sep 17 00:00:00 2001 From: David Hill Date: Fri, 17 Jan 2020 17:26:15 -0500 Subject: [PATCH] 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 --- templates/Dockerfile-yum.j2 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/templates/Dockerfile-yum.j2 b/templates/Dockerfile-yum.j2 index 0e62e6a..3c6234f 100644 --- a/templates/Dockerfile-yum.j2 +++ b/templates/Dockerfile-yum.j2 @@ -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 }}"