Add support for building vmtp container
Add needed library packages and Dockerfile to build vmtp container. Co-Authored-By: Larry Rensing <lr699s@att.com> Partially implements: bp vmtp-container Change-Id: I54340947f3bdf61d3e4f54884fed90ac318124ff
This commit is contained in:
parent
856d0a866c
commit
4218a3bb5b
@ -195,6 +195,7 @@ RUN {{ macros.install_packages(openstack_base_packages | customizable("packages"
|
|||||||
'libffi-devel',
|
'libffi-devel',
|
||||||
'libxml2-devel',
|
'libxml2-devel',
|
||||||
'libxslt-devel',
|
'libxslt-devel',
|
||||||
|
'libyaml-devel',
|
||||||
'MariaDB-devel',
|
'MariaDB-devel',
|
||||||
'openldap-devel',
|
'openldap-devel',
|
||||||
'openssl-devel',
|
'openssl-devel',
|
||||||
@ -212,7 +213,9 @@ RUN {{ macros.install_packages(openstack_base_packages | customizable("packages"
|
|||||||
'libmariadbclient-dev',
|
'libmariadbclient-dev',
|
||||||
'libxslt1-dev',
|
'libxslt1-dev',
|
||||||
'libffi-dev',
|
'libffi-dev',
|
||||||
|
'libxml2-dev',
|
||||||
'libyaml-dev',
|
'libyaml-dev',
|
||||||
|
'libz-dev',
|
||||||
'pkg-config',
|
'pkg-config',
|
||||||
'git'
|
'git'
|
||||||
] %}
|
] %}
|
||||||
|
25
docker/vmtp/Dockerfile.j2
Normal file
25
docker/vmtp/Dockerfile.j2
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
||||||
|
MAINTAINER {{ maintainer }}
|
||||||
|
|
||||||
|
{% if install_type == 'binary' %}
|
||||||
|
|
||||||
|
RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
|
||||||
|
&& /bin/false
|
||||||
|
|
||||||
|
{% elif install_type == 'source' %}
|
||||||
|
|
||||||
|
RUN pip install vmtp \
|
||||||
|
&& useradd --user-group vmtp
|
||||||
|
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
COPY vmtp_sudoers /etc/sudoers.d/kolla_vmtp_sudoers
|
||||||
|
RUN chmod 750 /etc/sudoers.d \
|
||||||
|
&& chmod 440 /etc/sudoers.d \
|
||||||
|
&& usermod -a -G kolla vmtp
|
||||||
|
|
||||||
|
{% block vmtp_footer %}{% endblock %}
|
||||||
|
{% block footer %}{% endblock %}
|
||||||
|
{{ include_footer }}
|
||||||
|
|
||||||
|
USER vmtp
|
1
docker/vmtp/vmtp_sudoers
Normal file
1
docker/vmtp/vmtp_sudoers
Normal file
@ -0,0 +1 @@
|
|||||||
|
%kolla ALL=(root) NOPASSWD: /usr/bin/chown -R vmtp\: /var/lib/vmtp, /bin/chown -R vmtp\: /var/lib/vmtp
|
3
releasenotes/notes/add-vmtp-7d6aef3125a38dbe.yaml
Normal file
3
releasenotes/notes/add-vmtp-7d6aef3125a38dbe.yaml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
---
|
||||||
|
features:
|
||||||
|
- Add vmtp support to docker container.
|
@ -70,6 +70,7 @@ class BuildTestCentosBinary(BuildTest, base.BaseTestCase):
|
|||||||
excluded_images = ["kuryr",
|
excluded_images = ["kuryr",
|
||||||
"neutron-networking-sfc-agent",
|
"neutron-networking-sfc-agent",
|
||||||
"senlin-base",
|
"senlin-base",
|
||||||
|
"vmtp",
|
||||||
"watcher-base"
|
"watcher-base"
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -91,6 +92,7 @@ class BuildTestCentosSource(BuildTest, base.BaseTestCase):
|
|||||||
|
|
||||||
class BuildTestUbuntuBinary(BuildTest, base.BaseTestCase):
|
class BuildTestUbuntuBinary(BuildTest, base.BaseTestCase):
|
||||||
excluded_images = ["neutron-networking-sfc-agent",
|
excluded_images = ["neutron-networking-sfc-agent",
|
||||||
|
"vmtp",
|
||||||
"zaqar"
|
"zaqar"
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -113,6 +115,7 @@ class BuildTestOracleLinuxBinary(BuildTest, base.BaseTestCase):
|
|||||||
excluded_images = ["kuryr",
|
excluded_images = ["kuryr",
|
||||||
"neutron-networking-sfc-agent",
|
"neutron-networking-sfc-agent",
|
||||||
"senlin-base",
|
"senlin-base",
|
||||||
|
"vmtp",
|
||||||
"watcher-base"
|
"watcher-base"
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user