
Currently we cannot import source archives with names different than expected by hardcoded line in Dockerfiles. This worked well for Openstack services' tarballs where we expected SERVICE-* root folder after extraction or kanaka-noVNC for nova-novncproxy docker. The latter fails if one tries to clone or get tarball under other names. This fix allows any archive (tar,tgz,zip) or repo name to be imported into dockerfile. Change-Id: I869a6a19afaf0e93925572746c22b7589b6600c9 Closes-Bug: #1491415
26 lines
592 B
Django/Jinja
26 lines
592 B
Django/Jinja
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-nova-base:{{ tag }}
|
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
|
|
|
RUN yum -y install \
|
|
novnc \
|
|
openstack-nova-novncproxy \
|
|
&& yum clean all
|
|
|
|
{% endif %}
|
|
{% elif install_type == 'source' %}
|
|
|
|
ADD nova-novncproxy-archive /nova-novncproxy-source
|
|
RUN ln -s nova-novncproxy-source/* /usr/share/novnc
|
|
|
|
{% endif %}
|
|
|
|
COPY start.sh /
|
|
COPY config-external.sh /opt/kolla/
|
|
|
|
CMD ["/start.sh"]
|
|
|
|
{{ include_footer }}
|