diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-08-16 03:41:56 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-08-16 03:41:56 +0000 |
| commit | 9bd3ea7207c08971bc604b2d1a99bfa431780c02 (patch) | |
| tree | 79cf21debf7d8beaef75710c4522a824e2408cbe | |
| parent | 6917464533924427bb34d15ad5a31656141aa17c (diff) | |
| parent | f0a349f8103849dee5eca4cdc769292e498cfe29 (diff) | |
| download | kolla-9bd3ea7207c08971bc604b2d1a99bfa431780c02.tar.gz kolla-9bd3ea7207c08971bc604b2d1a99bfa431780c02.zip | |
Merge "Add heat to docker_templates"
| -rw-r--r-- | docker_templates/heat/heat-api-cfn/Dockerfile.j2 | 23 | ||||
| l--------- | docker_templates/heat/heat-api-cfn/config-external.sh | 1 | ||||
| l--------- | docker_templates/heat/heat-api-cfn/start.sh | 1 | ||||
| -rw-r--r-- | docker_templates/heat/heat-api/Dockerfile.j2 | 23 | ||||
| l--------- | docker_templates/heat/heat-api/config-external.sh | 1 | ||||
| l--------- | docker_templates/heat/heat-api/start.sh | 1 | ||||
| -rw-r--r-- | docker_templates/heat/heat-base/Dockerfile.j2 | 31 | ||||
| -rw-r--r-- | docker_templates/heat/heat-engine/Dockerfile.j2 | 26 | ||||
| l--------- | docker_templates/heat/heat-engine/config-external.sh | 1 | ||||
| l--------- | docker_templates/heat/heat-engine/start.sh | 1 |
10 files changed, 109 insertions, 0 deletions
diff --git a/docker_templates/heat/heat-api-cfn/Dockerfile.j2 b/docker_templates/heat/heat-api-cfn/Dockerfile.j2 new file mode 100644 index 000000000..6bebe6227 --- /dev/null +++ b/docker_templates/heat/heat-api-cfn/Dockerfile.j2 @@ -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"] diff --git a/docker_templates/heat/heat-api-cfn/config-external.sh b/docker_templates/heat/heat-api-cfn/config-external.sh new file mode 120000 index 000000000..3554b955f --- /dev/null +++ b/docker_templates/heat/heat-api-cfn/config-external.sh @@ -0,0 +1 @@ +../../../docker/common/heat/heat-api-cfn/config-external.sh
\ No newline at end of file diff --git a/docker_templates/heat/heat-api-cfn/start.sh b/docker_templates/heat/heat-api-cfn/start.sh new file mode 120000 index 000000000..a432274f7 --- /dev/null +++ b/docker_templates/heat/heat-api-cfn/start.sh @@ -0,0 +1 @@ +../../../docker/common/heat/heat-api-cfn/start.sh
\ No newline at end of file diff --git a/docker_templates/heat/heat-api/Dockerfile.j2 b/docker_templates/heat/heat-api/Dockerfile.j2 new file mode 100644 index 000000000..49552127a --- /dev/null +++ b/docker_templates/heat/heat-api/Dockerfile.j2 @@ -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"] diff --git a/docker_templates/heat/heat-api/config-external.sh b/docker_templates/heat/heat-api/config-external.sh new file mode 120000 index 000000000..72176b1a0 --- /dev/null +++ b/docker_templates/heat/heat-api/config-external.sh @@ -0,0 +1 @@ +../../../docker/common/heat/heat-api/config-external.sh
\ No newline at end of file diff --git a/docker_templates/heat/heat-api/start.sh b/docker_templates/heat/heat-api/start.sh new file mode 120000 index 000000000..c0584ab54 --- /dev/null +++ b/docker_templates/heat/heat-api/start.sh @@ -0,0 +1 @@ +../../../docker/common/heat/heat-api/start.sh
\ No newline at end of file diff --git a/docker_templates/heat/heat-base/Dockerfile.j2 b/docker_templates/heat/heat-base/Dockerfile.j2 new file mode 100644 index 000000000..bd84be5ba --- /dev/null +++ b/docker_templates/heat/heat-base/Dockerfile.j2 @@ -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 %} diff --git a/docker_templates/heat/heat-engine/Dockerfile.j2 b/docker_templates/heat/heat-engine/Dockerfile.j2 new file mode 100644 index 000000000..60ee1b696 --- /dev/null +++ b/docker_templates/heat/heat-engine/Dockerfile.j2 @@ -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"] diff --git a/docker_templates/heat/heat-engine/config-external.sh b/docker_templates/heat/heat-engine/config-external.sh new file mode 120000 index 000000000..1e03e6c3b --- /dev/null +++ b/docker_templates/heat/heat-engine/config-external.sh @@ -0,0 +1 @@ +../../../docker/common/heat/heat-engine/config-external.sh
\ No newline at end of file diff --git a/docker_templates/heat/heat-engine/start.sh b/docker_templates/heat/heat-engine/start.sh new file mode 120000 index 000000000..5de8025b5 --- /dev/null +++ b/docker_templates/heat/heat-engine/start.sh @@ -0,0 +1 @@ +../../../docker/common/heat/heat-engine/start.sh
\ No newline at end of file |
