diff options
Diffstat (limited to 'docker/magnum/magnum-base/Dockerfile.j2')
| -rw-r--r-- | docker/magnum/magnum-base/Dockerfile.j2 | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/docker/magnum/magnum-base/Dockerfile.j2 b/docker/magnum/magnum-base/Dockerfile.j2 new file mode 100644 index 000000000..59c22f57e --- /dev/null +++ b/docker/magnum/magnum-base/Dockerfile.j2 @@ -0,0 +1,29 @@ +FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }} +MAINTAINER Kolla Project (https://launchpad.net/kolla) + +{% if install_type == 'binary' %} + {% if base_distro in ['centos'] %} + +RUN curl https://copr.fedoraproject.org/coprs/sdake/openstack-magnum/repo/epel-7/sdake-openstack-magnum-epel-7.repo -o /etc/yum.repos.d/sdake-openstack-magnum-epel-7.repo + + {% elif base_distro in ['fedora'] %} + +RUN curl https://copr.fedoraproject.org/coprs/sdake/openstack-magnum/repo/fedora-22/sdake-openstack-magnum-fedora-22.repo -o /etc/yum.repos.d/sdake-openstack-magnum-f22.repo + + {% elif base_distro in ['ubuntu', 'debian', 'oraclelinux'] %} + +RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \ + && /bin/false + + {% endif %} +{% elif install_type == 'source' %} + +ADD magnum.tar / +RUN ln -s /magnum-* magnum \ + && useradd --user-group magnum \ + && pip --no-cache-dir install /magnum \ + && mkdir -p /etc/magnum /var/log/magnum /home/magnum \ + && cp -r /magnum/etc/* /etc/magnum/ \ + && chown -R magnum: /etc/magnum /var/log/magnum /home/magnum + +{% endif %} |
