Merge "Add manila container (source only)"
This commit is contained in:
commit
5c4c8636ff
9
docker/manila/manila-api/Dockerfile.j2
Normal file
9
docker/manila/manila-api/Dockerfile.j2
Normal file
@ -0,0 +1,9 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
||||
|
||||
{{ include_footer }}
|
||||
|
||||
USER manila
|
9
docker/manila/manila-api/extend_start.sh
Normal file
9
docker/manila/manila-api/extend_start.sh
Normal file
@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
set -o errexit
|
||||
|
||||
# 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
|
||||
manila-manage db sync
|
||||
exit 0
|
||||
fi
|
21
docker/manila/manila-base/Dockerfile.j2
Normal file
21
docker/manila/manila-base/Dockerfile.j2
Normal file
@ -0,0 +1,21 @@
|
||||
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 manila-base-archive /manila-base-source
|
||||
RUN ln -s manila-base-source/* manila \
|
||||
&& useradd --user-group manila \
|
||||
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /manila \
|
||||
&& mkdir -p /etc/manila /var/log/manila /home/manila \
|
||||
&& cp -r /manila/etc/manila/* /etc/manila/ \
|
||||
&& chown -R manila: /etc/manila /var/log/manila /home/manila
|
||||
|
||||
{% endif %}
|
||||
|
||||
RUN usermod -a -G kolla manila
|
6
docker/manila/manila-scheduler/Dockerfile.j2
Normal file
6
docker/manila/manila-scheduler/Dockerfile.j2
Normal file
@ -0,0 +1,6 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{{ include_footer }}
|
||||
|
||||
USER manila
|
6
docker/manila/manila-share/Dockerfile.j2
Normal file
6
docker/manila/manila-share/Dockerfile.j2
Normal file
@ -0,0 +1,6 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}manila-base:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
{{ include_footer }}
|
||||
|
||||
USER manila
|
@ -187,6 +187,10 @@ SOURCES = {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/magnum/'
|
||||
'magnum-master.tar.gz')},
|
||||
'manila-base': {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/manila/'
|
||||
'manila-master.tar.gz')},
|
||||
'mistral-base': {
|
||||
'type': 'url',
|
||||
'location': ('http://tarballs.openstack.org/mistral/'
|
||||
|
@ -47,7 +47,8 @@ class BuildTest(base.BaseTestCase):
|
||||
"murano-base",
|
||||
"ironic-pxe",
|
||||
"ironic-discoverd",
|
||||
"mistral-base"]
|
||||
"mistral-base",
|
||||
"manila-base"]
|
||||
|
||||
failures = 0
|
||||
for image, result in six.iteritems(bad_results):
|
||||
|
Loading…
Reference in New Issue
Block a user