2015-09-17 09:35:33 -07:00
|
|
|
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
2015-11-23 12:38:58 +05:30
|
|
|
MAINTAINER {{ maintainer }}
|
2015-08-16 14:48:58 -07:00
|
|
|
|
2015-12-15 17:47:36 +09:00
|
|
|
{% if install_type == 'binary' %}
|
2016-05-17 11:59:53 +05:30
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
|
|
|
|
RUN yum -y install \
|
|
|
|
openstack-murano-common \
|
|
|
|
&& yum clean all
|
|
|
|
|
|
|
|
{% elif base_distro in ['ubuntu'] %}
|
2016-01-14 15:33:27 +01:00
|
|
|
|
2016-05-17 10:04:59 +05:30
|
|
|
RUN apt-get -y install --no-install-recommends \
|
2016-01-14 15:33:27 +01:00
|
|
|
murano-common \
|
|
|
|
&& apt-get clean
|
|
|
|
|
|
|
|
{% endif %}
|
2015-12-15 17:47:36 +09:00
|
|
|
{% elif install_type == 'source' %}
|
2015-08-16 14:48:58 -07:00
|
|
|
|
2015-09-02 17:36:46 +03:00
|
|
|
ADD murano-base-archive /murano-base-source
|
|
|
|
RUN ln -s murano-base-source/* murano \
|
2015-08-23 10:00:40 +00:00
|
|
|
&& useradd --user-group murano \
|
2015-12-27 02:41:30 +00:00
|
|
|
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /murano \
|
2016-02-17 14:36:44 +01:00
|
|
|
&& mkdir -p /etc/murano /home/murano \
|
2015-08-23 10:00:40 +00:00
|
|
|
&& cp -r /murano/etc/murano/* /etc/murano/ \
|
2016-02-17 14:36:44 +01:00
|
|
|
&& chown -R murano: /etc/murano /home/murano
|
2015-08-16 14:48:58 -07:00
|
|
|
|
|
|
|
{% endif %}
|
2015-11-30 11:35:18 +05:30
|
|
|
|
2016-02-17 14:36:44 +01:00
|
|
|
COPY extend_start.sh /usr/local/bin/kolla_extend_start
|
|
|
|
|
|
|
|
RUN usermod -a -G kolla murano \
|
2016-02-24 12:10:22 +01:00
|
|
|
&& touch /usr/local/bin/kolla_murano_extend_start \
|
|
|
|
&& chmod 755 /usr/local/bin/kolla_extend_start /usr/local/bin/kolla_murano_extend_start
|