Add Kuryr Docker container

Co-authored-by: Mohammad Banikazemi <mb@us.ibm.com>
Partially-implements: bp kuryr-docker-plugin
Change-Id: Ife54f71984ff6c9825769e81fd39e3444c6fe310
This commit is contained in:
Hui Kang 2016-03-27 03:55:15 +00:00
parent bb2ac5f6f9
commit 480c479ebf
4 changed files with 31 additions and 3 deletions

View File

@ -0,0 +1,19 @@
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' %}
ADD kuryr-archive /kuryr-source
RUN ln -s kuryr-source/* kuryr \
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /kuryr
{% endif %}
COPY extend_start.sh /usr/local/bin/kolla_extend_start
{{ include_footer }}

View File

@ -0,0 +1,6 @@
#!/bin/bash
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
mkdir -p /usr/lib/docker/plugins/kuryr
exit 0
fi

View File

@ -204,6 +204,10 @@ SOURCES = {
'type': 'url',
'location': ('http://tarballs.openstack.org/keystone/'
'keystone-master.tar.gz')},
'kuryr': {
'type': 'url',
'location': ('http://tarballs.openstack.org/kuryr/'
'kuryr-master.tar.gz')},
'magnum-base': {
'type': 'url',
'location': ('http://tarballs.openstack.org/magnum/'
@ -264,7 +268,6 @@ SOURCES = {
'type': 'url',
'location': ('http://tarballs.openstack.org/zaqar/'
'zaqar-master.tar.gz')}
}

View File

@ -67,7 +67,7 @@ class BuildTest(object):
class BuildTestCentosBinary(BuildTest, base.BaseTestCase):
excluded_images = []
excluded_images = ["kuryr"]
def setUp(self):
super(BuildTestCentosBinary, self).setUp()
@ -104,7 +104,7 @@ class BuildTestUbuntuSource(BuildTest, base.BaseTestCase):
class BuildTestOracleLinuxBinary(BuildTest, base.BaseTestCase):
excluded_images = []
excluded_images = ["kuryr"]
def setUp(self):
super(BuildTestOracleLinuxBinary, self).setUp()