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:
parent
bb2ac5f6f9
commit
480c479ebf
19
docker/kuryr/Dockerfile.j2
Normal file
19
docker/kuryr/Dockerfile.j2
Normal 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 }}
|
6
docker/kuryr/extend_start.sh
Normal file
6
docker/kuryr/extend_start.sh
Normal file
@ -0,0 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||
mkdir -p /usr/lib/docker/plugins/kuryr
|
||||
exit 0
|
||||
fi
|
@ -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')}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user