44251da0c6
Updates to ensure commands run in the ironic containers are done as the 'ironic' user rather than root. Change-Id: I491041ce02fb5dd3eb60c6ae9169f26d8a8919dd Partially-Implements: blueprint drop-root
30 lines
719 B
Django/Jinja
30 lines
719 B
Django/Jinja
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install \
|
|
tftp-server \
|
|
syslinux-tftpboot \
|
|
&& yum clean all \
|
|
&& mkdir -p /tftpboot \
|
|
&& cp /var/lib/tftpboot/chain.c32 /tftpboot
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
RUN apt-get install -y --no-install-recommends \
|
|
tftpd-hpa \
|
|
syslinux-common \
|
|
syslinux \
|
|
&& apt-get clean \
|
|
&& mkdir -p /tftpboot \
|
|
&& cp /usr/lib/syslinux/pxelinux.0 /usr/lib/syslinux/chain.c32 /tftpboot
|
|
|
|
{% endif %}
|
|
|
|
COPY tftp-map-file /tftpboot/map-file
|
|
|
|
{{ include_footer }}
|
|
|
|
USER ironic
|