Browse Source

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
changes/02/703202/2
David Hill 1 month ago
parent
commit
58d7a5bc9d
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      templates/Dockerfile-yum.j2

+ 5
- 0
templates/Dockerfile-yum.j2 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 }}"



Loading…
Cancel
Save