8eb2f83eee
Steve is tired of maintaining a copr for Magnum. People bug him all the time to update the rpm for RDO. The RDO community has offered to take on the maintainance of the Magnum RPM. As this RPM won't be in current-passed-ci for some time so it needs to be pulled from current repo for the foreseeable future, possibly nearing the release of Mitaka. Change-Id: I9cfb02ab828251ef5bf40ca236f18b5f0f715e34 Closes-Bug: #1539325
25 lines
876 B
Django/Jinja
25 lines
876 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}openstack-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux'] %}
|
|
|
|
RUN curl -L https://trunk.rdoproject.org/centos7/current/delorean.repo -o /etc/yum.repos.d/delorean.repo \
|
|
&& yum install -y openstack-magnum-common \
|
|
&& yum clean all
|
|
|
|
{% endif %}
|
|
{% elif install_type == 'source' %}
|
|
|
|
ADD magnum-base-archive /magnum-base-source
|
|
RUN ln -s magnum-base-source/* magnum \
|
|
&& useradd --user-group magnum \
|
|
&& /var/lib/kolla/venv/bin/pip --no-cache-dir install --upgrade -c requirements/upper-constraints.txt /magnum \
|
|
&& mkdir -p /etc/magnum /var/log/magnum /home/magnum \
|
|
&& cp -r /magnum/etc/magnum/* /etc/magnum \
|
|
&& chown -R magnum: /etc/magnum /var/log/magnum /home/magnum
|
|
|
|
{% endif %}
|
|
|
|
RUN usermod -a -G kolla magnum
|