46b41d2fad
This PS adds kubetoolbox image which is required for Kubernetes fencing pod. This image includes, kubectl binary, ceph-common and ipmi. Change-Id: I17b2a47b95ed7dea391f1427a41c92b15c97986d Partially-Implements: blueprint kubernetes-toolbox
33 lines
826 B
Django/Jinja
33 lines
826 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% block kubetoolbox_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
{% set kubetoolbox_packages = [
|
|
'jq',
|
|
'ceph-common',
|
|
'ipmitool'
|
|
] %}
|
|
|
|
{% elif base_distro in ['ubuntu', 'debian'] %}
|
|
|
|
{% set kubetoolbox_packages = [
|
|
'jq',
|
|
'ceph-common',
|
|
'ipmitool'
|
|
] %}
|
|
{% endif %}
|
|
|
|
{{ macros.install_packages(kubetoolbox_packages | customizable("packages")) }}
|
|
|
|
RUN curl -o /usr/bin/kubectl http://storage.googleapis.com/kubernetes-release/release/v1.4.0/bin/linux/amd64/kubectl \
|
|
&& chmod 755 /usr/bin/kubectl
|
|
|
|
{% block kubetoolbox_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
{{ include_footer }}
|