From 40ba2909d8f470a48221fa7f005ea3f2dfdf8704 Mon Sep 17 00:00:00 2001 From: Jeff Peeler Date: Tue, 14 Oct 2014 11:44:30 -0400 Subject: Implement containers for heat-engine and heat-api Loosely followed this document for setting up Heat: http://docs.openstack.org/icehouse/install-guide/install/yum/content/heat-install.html Some gotchas: - crux doesn't require escaping parenthesis for endpoint creation like keystone client - heat icehouse packages are configured for qpid, so kombu had to be specified specifically This firewall reference was handy for port information: http://docs.openstack.org/trunk/config-reference/content/firewalls-default-ports.html Implements: blueprint kube-heat-container Change-Id: Ie4291a6c4c2b85a23a71fc0a003d9160bf0a32b8 --- docker/heat/heat-base/Dockerfile | 13 +++----- docker/heat/heat-base/config-heat.sh | 65 ++++++++++++++++++++++++++++++++++++ 2 files changed, 69 insertions(+), 9 deletions(-) create mode 100755 docker/heat/heat-base/config-heat.sh (limited to 'docker/heat/heat-base') diff --git a/docker/heat/heat-base/Dockerfile b/docker/heat/heat-base/Dockerfile index 1904d189c..1bc0c6c8e 100644 --- a/docker/heat/heat-base/Dockerfile +++ b/docker/heat/heat-base/Dockerfile @@ -1,10 +1,5 @@ -FROM fedora-rdo-base -MAINTAINER Steven Dake +FROM kollaglue/fedora-rdo-base +MAINTAINER Jeff Peeler -RUN yum -y install \ - openstack-utils \ - openstack-heat && yum clean all - -# These will come after we sort out start time config -#RUN mkdir /opt/heat -#COPY config-heat.sh /opt/heat/config-heat.sh +RUN mkdir -p /opt/kolla +COPY config-heat.sh /opt/kolla/config-heat.sh diff --git a/docker/heat/heat-base/config-heat.sh b/docker/heat/heat-base/config-heat.sh new file mode 100755 index 000000000..c2837325c --- /dev/null +++ b/docker/heat/heat-base/config-heat.sh @@ -0,0 +1,65 @@ +#!/bin/sh + +set -e + +. /opt/kolla/kolla-common.sh + +: ${ADMIN_TENANT_NAME:=admin} +: ${HEAT_DB_NAME:=heat} +: ${HEAT_DB_USER:=heat} +: ${HEAT_KEYSTONE_USER:=heat} +: ${KEYSTONE_AUTH_PROTOCOL:=http} +: ${PUBLIC_IP:=$HEAT_API_PORT_8004_TCP_ADDR} +: ${RABBIT_USER:=guest} +: ${RABBIT_PASSWORD:=guest} + +check_required_vars HEAT_DB_PASSWORD HEAT_KEYSTONE_PASSWORD +dump_vars + +cat > /openrc <