Merge "drop root for glance"
This commit is contained in:
commit
610604e4b3
@ -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
|
||||
|
@ -1,4 +1,6 @@
|
||||
FROM {{ namespace }}/{{ image_prefix }}glance-base:{{ tag }}
|
||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||
|
||||
USER glance
|
||||
|
||||
{{ include_footer }}
|
||||
|
Loading…
Reference in New Issue
Block a user