Add trove containers

Implements blueprint trove-container

Change-Id: I2c5d48af3fe4a5297ab13c8cfccc86ce247a9414
This commit is contained in:
Swapnil Kulkarni (coolsvap) 2015-12-18 12:22:12 +05:30
parent 03fd08d867
commit 1b8e9e729d
7 changed files with 100 additions and 0 deletions

View File

@ -0,0 +1,18 @@
FROM {{ namespace }}/{{ image_prefix }}trove-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum install -y openstack-trove-api \
&& yum clean all
{% endif %}
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
{{ include_footer }}
USER trove

View File

@ -0,0 +1,8 @@
#!/bin/bash
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
# of the KOLLA_BOOTSTRAP variable being set, including empty.
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
trove-manage db_sync
exit 0
fi

View File

@ -0,0 +1,25 @@
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install \
openstack-trove-common \
&& yum clean all
{% endif %}
{% elif install_type == 'source' %}
ADD trove-base-archive /trove-base-source
RUN ln -s trove-base-source/* trove \
&& useradd --user-group trove \
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install -c requirements/upper-constraints.txt /trove \
&& mkdir -p /etc/trove /var/log/trove /home/trove \
&& cp -r /trove/etc/* /etc/trove/ \
&& chown -R trove: /etc/trove /var/log/trove /home/trove
{% endif %}
RUN usermod -a -G kolla trove

View File

@ -0,0 +1,15 @@
FROM {{ namespace }}/{{ image_prefix }}trove-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum install -y openstack-trove-conductor \
&& yum clean all
{% endif %}
{% endif %}
{{ include_footer }}
USER trove

View File

@ -0,0 +1,15 @@
FROM {{ namespace }}/{{ image_prefix }}trove-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum install -y openstack-trove-guestagent \
&& yum clean all
{% endif %}
{% endif %}
{{ include_footer }}
USER trove

View File

@ -0,0 +1,15 @@
FROM {{ namespace }}/{{ image_prefix }}trove-base:{{ tag }}
MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum install -y openstack-trove-taskmanager \
&& yum clean all
{% endif %}
{% endif %}
{{ include_footer }}
USER trove

View File

@ -161,6 +161,10 @@ location = http://tarballs.openstack.org/swift/swift-master.tar.gz
type = url
location = http://tarballs.openstack.org/tempest/tempest-master.tar.gz
[trove-base]
type = url
location = http://tarballs.openstack.org/trove/trove-master.tar.gz
[zaqar]
type = url
location = http://tarballs.openstack.org/zaqar/zaqar-master.tar.gz