Files
ansible-role-tripleo-modify…/templates/Dockerfile-yum-install.j2
Alex Schultz 3a4caf4587 Implement a yum install command
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
2019-07-03 17:45:21 -06:00

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 }}"