Add trove containers
Implements blueprint trove-container Change-Id: I2c5d48af3fe4a5297ab13c8cfccc86ce247a9414
This commit is contained in:
parent
03fd08d867
commit
1b8e9e729d
18
docker/trove/trove-api/Dockerfile.j2
Normal file
18
docker/trove/trove-api/Dockerfile.j2
Normal 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
|
8
docker/trove/trove-api/extend_start.sh
Normal file
8
docker/trove/trove-api/extend_start.sh
Normal 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
|
25
docker/trove/trove-base/Dockerfile.j2
Normal file
25
docker/trove/trove-base/Dockerfile.j2
Normal 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
|
15
docker/trove/trove-conductor/Dockerfile.j2
Normal file
15
docker/trove/trove-conductor/Dockerfile.j2
Normal 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
|
15
docker/trove/trove-guestagent/Dockerfile.j2
Normal file
15
docker/trove/trove-guestagent/Dockerfile.j2
Normal 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
|
15
docker/trove/trove-taskmanager/Dockerfile.j2
Normal file
15
docker/trove/trove-taskmanager/Dockerfile.j2
Normal 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
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user