8dd0f553a2
Allow operators to customise the location k8s binaries are pulled from in kubernetes-entrypoint & kubetoolbox Change-Id: I8bab3fe7dfb9ac23dcfbfd2c709cfddaaab40534
23 lines
628 B
Django/Jinja
23 lines
628 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% block kubetoolbox_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% set kubetoolbox_packages = [
|
|
'jq',
|
|
'ceph-common',
|
|
'ipmitool'
|
|
] %}
|
|
|
|
{{ macros.install_packages(kubetoolbox_packages | customizable("packages")) }}
|
|
|
|
{% block kubetoolbox_install_kube_binary %}
|
|
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
|
|
{% endblock %}
|
|
|
|
{% block kubetoolbox_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|