b60d8bc629
Change-Id: I5ad90f96aa58a99765feb2a3bc96157a4a61310f Depends-On: If4be00b937e14ec93443dcb7249cf17099d57cbe Closes-Bug:#1582518
32 lines
836 B
Django/Jinja
32 lines
836 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}magnum-base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install \
|
|
openstack-magnum-conductor \
|
|
tar \
|
|
&& yum clean all
|
|
|
|
{% elif base_distro in ['ubuntu'] %}
|
|
|
|
RUN apt-get -y install --no-install-recommends \
|
|
magnum-conductor\
|
|
&& apt-get clean
|
|
|
|
{% endif %}
|
|
|
|
# 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
|
|
|
|
{% endif %}
|
|
|
|
{{ include_footer }}
|
|
|
|
USER magnum
|