Swapnil Kulkarni ef07cfc222 Add build from source for gnocchi
Change-Id: Ifd012b8cb7dd643da74364ecaa5133608fe9fe38
Partially-implements: blueprint install-from-source
2015-07-28 05:51:38 +00:00

18 lines
482 B
Docker

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