Ryan Hallisey 726a80cd1d Refactor where source builds place config files
Many of the services have a nested directory that will
be copied into /etc, which will place the config files one
layer too deep. For example: heat has 'heat/etc/heat/heat.conf'.
Copying 'heat/etc*' to '/etc/heat' will create this extra layer.

Change-Id: Iad4661f0316523c5fe8d029d24a8e4fc68da6e15
Closes-Bug: #1484974
2015-08-14 10:58:09 -04:00

20 lines
529 B
Docker

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