Swapnil Kulkarni a0f67f67df Remove /opt/kolla directory creation base images
No need to do a make dir since COPY will create it.
Also removed from service specific base images since
it will not be required.

Change-Id: I15064eaf6e8faa9acbda68eaf3d85589ea9ed3d9
Closes-Bug: #1479176
2015-07-29 03:41:05 +00:00

16 lines
435 B
Docker

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