Merge "Adding kubetoolbox image"
This commit is contained in:
commit
ada5740c55
@ -21,3 +21,7 @@ cron_image_full: "{{ cron_image }}:{{ cron_tag }}"
|
||||
fluentd_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-fluentd"
|
||||
fluentd_tag: "{{ openstack_release }}"
|
||||
fluentd_image_full: "{{ fluentd_image }}:{{ fluentd_tag }}"
|
||||
|
||||
kubetoolbox_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-kubetoolbox"
|
||||
kubetoolbox_tag: "{{ openstack_release }}"
|
||||
kubetoolbox_image_full: "{{ kubetoolbox_image }}:{{ kubetoolbox_tag }}"
|
||||
|
32
docker/kubetoolbox/Dockerfile.j2
Normal file
32
docker/kubetoolbox/Dockerfile.j2
Normal file
@ -0,0 +1,32 @@
|
||||
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 }}
|
Loading…
Reference in New Issue
Block a user