kolla-ansible/docker/centos/source/glance/glance-base/Dockerfile
Vladislav Belogrudov f30ec59e36 Glance source based containers cannot write to /var/log/glance
Glance services fail when trying to send log messages to
/var/log/glance because the folder has wrong ownership.

Change-Id: Ic3878341e83564278f7eac418bd9ed9be90c929f
Closes-Bug: #1483747
2015-08-11 16:44:51 +03:00

17 lines
474 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/ \
&& chown -R glance: /etc/glance /var/log/glance \
&& rm -rf /root/.cache
CMD ["/start.sh"]