Vladislav Belogrudov acd3e618e0 Glance source based container misses 'glance' user
This will lead to failed database initialization

Change-Id: If54e928bfe7004b7048294100cebbf693cebda79
Closes-Bug: #1483659
2015-08-11 14:19:27 +03:00

16 lines
420 B
Docker

FROM %%KOLLA_NAMESPACE%%/%%KOLLA_PREFIX%%base:%%KOLLA_TAG%%
MAINTAINER Kolla Project (https://launchpad.net/kolla)
ADD ./glance.tar /
RUN ln -s /glance-* /glance
RUN cd /glance \
&& useradd --user-group glance \
&& pip install -r requirements.txt \
&& pip install /glance \
&& mkdir /etc/glance /var/log/glance \
&& cp -r /glance/etc/* /etc/glance/ \
&& rm -rf /root/.cache
CMD ["/start.sh"]