Skip to content
Snippets Groups Projects
Commit 610604e4 authored by Jenkins's avatar Jenkins Committed by Gerrit Code Review
Browse files

Merge "drop root for glance"

parents cb578df3 bd9e8c22
No related branches found
No related tags found
No related merge requests found
......@@ -4,4 +4,6 @@ MAINTAINER Kolla Project (https://launchpad.net/kolla)
COPY extend_start.sh /usr/local/bin/kolla_extend_start
RUN chmod 755 /usr/local/bin/kolla_extend_start
USER glance
{{ include_footer }}
......@@ -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 glance glance-manage db_sync
glance-manage db_sync
exit 0
fi
......@@ -43,3 +43,5 @@ RUN ln -s glance-base-source/* glance \
&& chown -R glance: /etc/glance /var/log/glance /home/glance
{% endif %}
RUN usermod -a -G kolla glance
FROM {{ namespace }}/{{ image_prefix }}glance-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)
USER glance
{{ include_footer }}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment