Add heat to docker_templates
This adds Heat to the docker_templates directory. Change-Id: I836d35515c71842f01974e9ae4dd934f3f4114f9 Partially-Implements: blueprint dockerfile-template
This commit is contained in:
parent
71918cca5e
commit
f0a349f810
23
docker_templates/heat/heat-api-cfn/Dockerfile.j2
Normal file
23
docker_templates/heat/heat-api-cfn/Dockerfile.j2
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
||||||
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||||
|
|
||||||
|
{% if install_type == 'binary' %}
|
||||||
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
||||||
|
|
||||||
|
RUN yum -y install \
|
||||||
|
openstack-heat-api-cfn \
|
||||||
|
python-openstackclient \
|
||||||
|
&& yum clean all
|
||||||
|
|
||||||
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||||
|
|
||||||
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||||
|
&& /bin/false
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
COPY start.sh /
|
||||||
|
COPY config-external.sh /opt/kolla/
|
||||||
|
|
||||||
|
CMD ["/start.sh"]
|
1
docker_templates/heat/heat-api-cfn/config-external.sh
Symbolic link
1
docker_templates/heat/heat-api-cfn/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../docker/common/heat/heat-api-cfn/config-external.sh
|
1
docker_templates/heat/heat-api-cfn/start.sh
Symbolic link
1
docker_templates/heat/heat-api-cfn/start.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../docker/common/heat/heat-api-cfn/start.sh
|
23
docker_templates/heat/heat-api/Dockerfile.j2
Normal file
23
docker_templates/heat/heat-api/Dockerfile.j2
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
||||||
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||||
|
|
||||||
|
{% if install_type == 'binary' %}
|
||||||
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
||||||
|
|
||||||
|
RUN yum -y install \
|
||||||
|
openstack-heat-api \
|
||||||
|
python-openstackclient \
|
||||||
|
&& yum clean all
|
||||||
|
|
||||||
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||||
|
|
||||||
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||||
|
&& /bin/false
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
COPY start.sh /
|
||||||
|
COPY config-external.sh /opt/kolla/
|
||||||
|
|
||||||
|
CMD ["/start.sh"]
|
1
docker_templates/heat/heat-api/config-external.sh
Symbolic link
1
docker_templates/heat/heat-api/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../docker/common/heat/heat-api/config-external.sh
|
1
docker_templates/heat/heat-api/start.sh
Symbolic link
1
docker_templates/heat/heat-api/start.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../docker/common/heat/heat-api/start.sh
|
31
docker_templates/heat/heat-base/Dockerfile.j2
Normal file
31
docker_templates/heat/heat-base/Dockerfile.j2
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
||||||
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||||
|
|
||||||
|
{% if install_type == 'binary' %}
|
||||||
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
||||||
|
|
||||||
|
RUN yum -y install \
|
||||||
|
python-oslo-reports \
|
||||||
|
&& yum clean all
|
||||||
|
|
||||||
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||||
|
|
||||||
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||||
|
&& /bin/false
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
|
ADD ./heat.tar /
|
||||||
|
RUN ln -s /heat-* /heat
|
||||||
|
|
||||||
|
RUN cd /heat \
|
||||||
|
&& useradd --user-group heat \
|
||||||
|
&& pip install -r requirements.txt \
|
||||||
|
&& pip install /heat \
|
||||||
|
&& mkdir /etc/heat /var/www/cgi-bin/heat \
|
||||||
|
&& cp -r /heat/etc/* /etc/heat/ \
|
||||||
|
&& cp -a httpd/heat.py /var/www/cgi-bin/heat/admin \
|
||||||
|
&& cp -a httpd/heat.py /var/www/cgi-bin/heat/main
|
||||||
|
|
||||||
|
{% endif %}
|
26
docker_templates/heat/heat-engine/Dockerfile.j2
Normal file
26
docker_templates/heat/heat-engine/Dockerfile.j2
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
|
||||||
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||||
|
|
||||||
|
{% if install_type == 'binary' %}
|
||||||
|
{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}
|
||||||
|
|
||||||
|
RUN yum -y install \
|
||||||
|
# until http://pkgs.fedoraproject.org/cgit/openstack-heat.git/tree/openstack-heat.spec#n248 \
|
||||||
|
# is updated, the clients must remain here: \
|
||||||
|
python-barbicanclient \
|
||||||
|
python-zaqarclient \
|
||||||
|
openstack-heat-engine \
|
||||||
|
&& yum clean all
|
||||||
|
|
||||||
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
||||||
|
|
||||||
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||||
|
&& /bin/false
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
COPY start.sh /
|
||||||
|
COPY config-external.sh /opt/kolla/
|
||||||
|
|
||||||
|
CMD ["/start.sh"]
|
1
docker_templates/heat/heat-engine/config-external.sh
Symbolic link
1
docker_templates/heat/heat-engine/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../docker/common/heat/heat-engine/config-external.sh
|
1
docker_templates/heat/heat-engine/start.sh
Symbolic link
1
docker_templates/heat/heat-engine/start.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../../docker/common/heat/heat-engine/start.sh
|
Loading…
Reference in New Issue
Block a user