Merge "Tacker Docker configuration"
This commit is contained in:
commit
0b16839184
31
docker/tacker/Dockerfile.j2
Normal file
31
docker/tacker/Dockerfile.j2
Normal file
@ -0,0 +1,31 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{% block tacker_header %}{% endblock %}
|
||||
|
||||
{% if install_type == 'binary' %}
|
||||
|
||||
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||
&& /bin/false
|
||||
|
||||
{% elif install_type == 'source' %}
|
||||
|
||||
ADD tacker-archive /tacker-source
|
||||
RUN ln -s tacker-source/* tacker \
|
||||
&& useradd --user-group --create-home --home-dir /var/lib/tacker tacker \
|
||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /tacker \
|
||||
&& mkdir -p /etc/tacker \
|
||||
&& cp -r /tacker/etc/tacker/* /etc/tacker \
|
||||
&& chown -R tacker: /etc/tacker
|
||||
|
||||
{% endif %}
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||
|
||||
RUN usermod -a -G kolla tacker \
|
||||
&& chmod 755 /usr/local/bin/kolla_extend_start
|
||||
|
||||
{% block tacker_footer %}{% endblock %}
|
||||
{% block footer %}{% endblock %}
|
||||
|
||||
USER tacker
|
15
docker/tacker/extend_start.sh
Normal file
15
docker/tacker/extend_start.sh
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ ! -d "/var/log/kolla/tacker" ]]; then
|
||||
mkdir -p /var/log/kolla/tacker
|
||||
fi
|
||||
if [[ $(stat -c %a /var/log/kolla/tacker) != "755" ]]; then
|
||||
chmod 755 /var/log/kolla/tacker
|
||||
fi
|
||||
|
||||
# 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
|
||||
tacker-db-manage --config-file /etc/tacker/tacker.conf upgrade head
|
||||
exit 0
|
||||
fi
|
@ -49,7 +49,8 @@ _PROFILE_OPTS = [
|
||||
'freezer', 'gnocchi', 'influxdb', 'ironic', 'karbor',
|
||||
'kuryr', 'magnum', 'manila', 'mistral', 'murano',
|
||||
'octavia', 'panko', 'rally', 'sahara', 'searchlight',
|
||||
'senlin', 'solum', 'telegraf', 'trove', 'zaqar'],
|
||||
'senlin', 'solum', 'tacker' 'telegraf', 'trove',
|
||||
'zaqar'],
|
||||
help='Aux Images'),
|
||||
cfg.ListOpt('default',
|
||||
default=['chrony', 'cron', 'kolla-toolbox', 'glance',
|
||||
@ -358,6 +359,10 @@ SOURCES = {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/swift/'
|
||||
'swift-master.tar.gz')},
|
||||
'tacker': {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/tacker/'
|
||||
'tacker-master.tar.gz')},
|
||||
'tempest': {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/tempest/'
|
||||
|
@ -77,7 +77,8 @@ class BuildTestCentosBinary(BuildTest, base.BaseTestCase):
|
||||
"congress-base",
|
||||
"bifrost-base",
|
||||
"cloudkitty-base",
|
||||
"freezer-base"]
|
||||
"freezer-base",
|
||||
"tacker"]
|
||||
|
||||
def setUp(self):
|
||||
super(BuildTestCentosBinary, self).setUp()
|
||||
@ -109,7 +110,8 @@ class BuildTestUbuntuBinary(BuildTest, base.BaseTestCase):
|
||||
"bifrost-base",
|
||||
"cloudkitty-base",
|
||||
"freezer-base",
|
||||
"panko-base"]
|
||||
"panko-base",
|
||||
"tacker"]
|
||||
|
||||
def setUp(self):
|
||||
super(BuildTestUbuntuBinary, self).setUp()
|
||||
@ -139,7 +141,8 @@ class BuildTestOracleLinuxBinary(BuildTest, base.BaseTestCase):
|
||||
"congress-base",
|
||||
"bifrost-base",
|
||||
"cloudkitty-base",
|
||||
"freezer-base"]
|
||||
"freezer-base",
|
||||
"tacker"]
|
||||
|
||||
def setUp(self):
|
||||
super(BuildTestOracleLinuxBinary, self).setUp()
|
||||
|
Loading…
x
Reference in New Issue
Block a user