Add karbor container
Change-Id: I8ed8840d06a1fdb87aad51f438ac6c38c1c14642 Partially-implements: bp karbor-container
This commit is contained in:
parent
d389d7aacf
commit
2dae2f080c
20
docker/karbor/karbor-api/Dockerfile.j2
Normal file
20
docker/karbor/karbor-api/Dockerfile.j2
Normal file
@ -0,0 +1,20 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}karbor-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% block karbor_api_header %}{% endblock %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% endif %}
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_karbor_extend_start
|
||||
RUN chmod 755 /usr/local/bin/kolla_karbor_extend_start
|
||||
|
||||
{% block karbor_api_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
{{ include_footer }}
|
||||
|
||||
USER karbor
|
8
docker/karbor/karbor-api/extend_start.sh
Normal file
8
docker/karbor/karbor-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
|
||||
karbor-manage db sync
|
||||
exit 0
|
||||
fi
|
29
docker/karbor/karbor-base/Dockerfile.j2
Normal file
29
docker/karbor/karbor-base/Dockerfile.j2
Normal file
@ -0,0 +1,29 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% block karbor_base_header %}{% endblock %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
ADD karbor-base-archive /karbor-base-source
|
||||
RUN ln -s karbor-base-source/* karbor \
|
||||
&& useradd --user-group --create-home --home-dir /var/lib/karbor karbor \
|
||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /karbor \
|
||||
&& mkdir -p /etc/karbor \
|
||||
&& cp -r /karbor/etc/* /etc/karbor/ \
|
||||
&& chown -R karbor: /etc/karbor
|
||||
|
||||
{% endif %}
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||
|
||||
RUN usermod -a -G kolla karbor \
|
||||
&& touch /usr/local/bin/kolla_karbor_extend_start \
|
||||
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_karbor_extend_start
|
||||
|
||||
{% block karbor_base_footer %}{% endblock %}
|
10
docker/karbor/karbor-base/extend_start.sh
Normal file
10
docker/karbor/karbor-base/extend_start.sh
Normal file
@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ ! -d "/var/log/kolla/karbor" ]]; then
|
||||
mkdir -p /var/log/kolla/karbor
|
||||
fi
|
||||
if [[ $(stat -c %a /var/log/kolla/karbor) != "755" ]]; then
|
||||
chmod 755 /var/log/kolla/karbor
|
||||
fi
|
||||
|
||||
. /usr/local/bin/kolla_karbor_extend_start
|
17
docker/karbor/karbor-operationengine/Dockerfile.j2
Normal file
17
docker/karbor/karbor-operationengine/Dockerfile.j2
Normal file
@ -0,0 +1,17 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}karbor-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% block karbor_operationengine_header %}{% endblock %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% block karbor_operationengine_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
{{ include_footer }}
|
||||
|
||||
USER karbor
|
17
docker/karbor/karbor-protection/Dockerfile.j2
Normal file
17
docker/karbor/karbor-protection/Dockerfile.j2
Normal file
@ -0,0 +1,17 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}karbor-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% block karbor_protection_header %}{% endblock %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% block karbor_protection_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
{{ include_footer }}
|
||||
|
||||
USER karbor
|
@ -46,10 +46,10 @@ _PROFILE_OPTS = [
|
||||
help='Main images'),
|
||||
cfg.ListOpt('aux',
|
||||
default=['aodh', 'cloudkitty', 'congress', 'designate',
|
||||
'freezer', 'gnocchi', 'influxdb', 'ironic', 'kuryr',
|
||||
'magnum', 'manila', 'mistral', 'murano', 'panko',
|
||||
'rally', 'sahara', 'searchlight', 'senlin', 'solum',
|
||||
'telegraf', 'trove', 'zaqar'],
|
||||
'freezer', 'gnocchi', 'influxdb', 'ironic', 'karbor',
|
||||
'kuryr', 'magnum', 'manila', 'mistral', 'murano',
|
||||
'panko', 'rally', 'sahara', 'searchlight', 'senlin',
|
||||
'solum', 'telegraf', 'trove', 'zaqar'],
|
||||
help='Aux Images'),
|
||||
cfg.ListOpt('default',
|
||||
default=['chrony', 'cron', 'kolla-toolbox', 'glance',
|
||||
@ -226,6 +226,10 @@ SOURCES = {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/ironic-inspector/'
|
||||
'ironic-inspector-master.tar.gz')},
|
||||
'karbor-base': {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/karbor/'
|
||||
'karbor-master.tar.gz')},
|
||||
'keystone-base': {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/keystone/'
|
||||
|
5
releasenotes/notes/add-karbor-e6cfd97f965a4a9f.yaml
Normal file
5
releasenotes/notes/add-karbor-e6cfd97f965a4a9f.yaml
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
features:
|
||||
- Add Karbor Dockerfile , Karbor is an OpenStack project
|
||||
that provides a pluggable framework for protecting and
|
||||
restoring Data and Metadata.
|
@ -65,7 +65,8 @@ class BuildTest(object):
|
||||
|
||||
|
||||
class BuildTestCentosBinary(BuildTest, base.BaseTestCase):
|
||||
excluded_images = ["kuryr-base",
|
||||
excluded_images = ["karbor-base",
|
||||
"kuryr-base",
|
||||
"neutron-sfc-agent",
|
||||
"searchlight-base",
|
||||
"senlin-base",
|
||||
@ -94,7 +95,8 @@ class BuildTestCentosSource(BuildTest, base.BaseTestCase):
|
||||
|
||||
|
||||
class BuildTestUbuntuBinary(BuildTest, base.BaseTestCase):
|
||||
excluded_images = ["kuryr-base",
|
||||
excluded_images = ["karbor-base",
|
||||
"kuryr-base",
|
||||
"neutron-sfc-agent",
|
||||
"searchlight-base",
|
||||
"senlin-base",
|
||||
@ -124,7 +126,8 @@ class BuildTestUbuntuSource(BuildTest, base.BaseTestCase):
|
||||
|
||||
|
||||
class BuildTestOracleLinuxBinary(BuildTest, base.BaseTestCase):
|
||||
excluded_images = ["kuryr-base",
|
||||
excluded_images = ["karbor-base",
|
||||
"kuryr-base",
|
||||
"neutron-sfc-agent",
|
||||
"searchlight-base",
|
||||
"senlin-base",
|
||||
|
Loading…
x
Reference in New Issue
Block a user