Update Magnum dockerfiles for formatting

Change-Id: Ieaad94d423d58b153bbf7f634be44a0e48ac775f
Partial-Bug:#1569417
changes/32/304732/1
Swapnil Kulkarni (coolsvap) 7 years ago
parent 3f9f267a42
commit 2a19d8e6e3
  1. 3
      docker/magnum/magnum-api/Dockerfile.j2
  2. 3
      docker/magnum/magnum-base/Dockerfile.j2
  3. 6
      docker/magnum/magnum-conductor/Dockerfile.j2

@ -4,7 +4,8 @@ MAINTAINER {{ maintainer }}
{% if install_type == 'binary' %}
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
RUN yum -y install openstack-magnum-api \
RUN yum -y install \
openstack-magnum-api \
&& yum clean all
{% endif %}

@ -5,7 +5,8 @@ MAINTAINER {{ maintainer }}
{% 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 -y install \
openstack-magnum-common \
&& yum clean all
{% endif %}

@ -10,7 +10,11 @@ RUN yum -y install \
&& yum clean all
# Install kubectl binary (ugh)
RUN cd /tmp && curl -L https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v0.15.0/kubernetes.tar.gz -o /tmp/kubernetes.tar.gz && /usr/bin/tar -xzvf /tmp/kubernetes.tar.gz && cp -a /tmp/kubernetes/platforms/linux/amd64/kubectl /usr/bin/kubectl && rm -rf /tmp/kubernetes
RUN cd /tmp \
&& curl -L https://github.com/GoogleCloudPlatform/kubernetes/releases/download/v0.15.0/kubernetes.tar.gz -o /tmp/kubernetes.tar.gz \
&& /usr/bin/tar -xzvf /tmp/kubernetes.tar.gz \
&& cp -a /tmp/kubernetes/platforms/linux/amd64/kubectl /usr/bin/kubectl \
&& rm -rf /tmp/kubernetes
{% endif %}
{% endif %}

Loading…
Cancel
Save