Yum update works if you want to update existing packages, but sometimes you want to install a package that's available via the yum repositories that is extra. This implements a yum install action similiar to the yum update action except it takes package names instead of repos to install. Change-Id: Ia47a1ea9eb51a37f6d75d39c524e97fd4ec94fba
18 lines
338 B
Django/Jinja
18 lines
338 B
Django/Jinja
FROM {{ source_image }}
|
|
LABEL modified_append_tag={{ modified_append_tag }}
|
|
|
|
WORKDIR /
|
|
USER root
|
|
|
|
COPY yum_install.sh /tmp/
|
|
|
|
{% if yum_repos_dir_path is defined %}
|
|
RUN rm -rf /etc/yum.repos.d/
|
|
COPY yum.repos.d /etc/yum.repos.d
|
|
COPY repos /
|
|
{% endif %}
|
|
|
|
RUN /tmp/yum_install.sh "{{ yum_packages | join(' ') }}"
|
|
|
|
USER "{{ original_user }}"
|