Merge "Drop root for nova"

This commit is contained in:
Jenkins 2015-12-05 10:48:25 +00:00 committed by Gerrit Code Review
commit 30b0439c65
11 changed files with 21 additions and 1 deletions

View File

@ -14,3 +14,5 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
{{ include_footer }}
USER nova

View File

@ -3,6 +3,6 @@
# 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
sudo -H -u nova nova-manage db sync
nova-manage db sync
exit 0
fi

View File

@ -42,3 +42,5 @@ RUN ln -s nova-base-source/* nova \
&& chown -R nova: /etc/nova /var/log/nova /home/nova
{% endif %}
RUN usermod -a -G kolla nova

View File

@ -39,3 +39,5 @@ RUN /var/lib/kolla/venv/bin/pip install --no-cache-dir libvirt-python
{% endif %}
{{ include_footer }}
USER nova

View File

@ -11,3 +11,5 @@ RUN yum -y install openstack-nova-conductor \
{% endif %}
{{ include_footer }}
USER nova

View File

@ -11,3 +11,5 @@ RUN yum -y install openstack-nova-console \
{% endif %}
{{ include_footer }}
USER nova

View File

@ -33,3 +33,5 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
{{ include_footer }}
USER nova

View File

@ -21,3 +21,5 @@ RUN yum -y install initscripts \
{% endif %}
{{ include_footer }}
USER nova

View File

@ -18,3 +18,5 @@ RUN cd /usr/share && ln -s nova-novncproxy-source/* novnc
{% endif %}
{{ include_footer }}
USER nova

View File

@ -11,3 +11,5 @@ RUN yum -y install openstack-nova-scheduler \
{% endif %}
{{ include_footer }}
USER nova

View File

@ -16,3 +16,5 @@ RUN cd /usr/share && ln -s nova-spicehtml5proxy-source/* spice-html5
{% endif %}
{{ include_footer }}
USER nova