59a1c8b9fb
Added new option in kolla-build.conf Change-Id: I45fe51966bcb59ea19d112281ba3d5a1ba091a56 Closes-Bug:#1514304
28 lines
706 B
Django/Jinja
28 lines
706 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 }}
|