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
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
||||||
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
RUN chmod 755 /usr/local/bin/kolla_extend_start
|
||||||
|
|
||||||
|
USER glance
|
||||||
|
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
@ -3,6 +3,6 @@
|
|||||||
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
# Bootstrap and exit if KOLLA_BOOTSTRAP variable is set. This catches all cases
|
||||||
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
# of the KOLLA_BOOTSTRAP variable being set, including empty.
|
||||||
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
if [[ "${!KOLLA_BOOTSTRAP[@]}" ]]; then
|
||||||
sudo -H -u glance glance-manage db_sync
|
glance-manage db_sync
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
@ -43,3 +43,5 @@ RUN ln -s glance-base-source/* glance \
|
|||||||
&& chown -R glance: /etc/glance /var/log/glance /home/glance
|
&& chown -R glance: /etc/glance /var/log/glance /home/glance
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
RUN usermod -a -G kolla glance
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
FROM {{ namespace }}/{{ image_prefix }}glance-base:{{ tag }}
|
FROM {{ namespace }}/{{ image_prefix }}glance-base:{{ tag }}
|
||||||
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
MAINTAINER Kolla Project (https://launchpad.net/kolla)
|
||||||
|
|
||||||
|
USER glance
|
||||||
|
|
||||||
{{ include_footer }}
|
{{ include_footer }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user