43de60caaf
Both kubetoolbox and magnum-conductor install 'kubectl'. In different versions. And only for x86-64. New macro knows how to handle other architectures. AArch64 binary is fetched properly, other architectures (ppc64le for now) gets info that there is no binary upstream. Also updated to v1.5.4 as this one is used by kube/* images. Change-Id: Ia491d6ec7156201742f28b5d1018f2794529b5b4 Partially-Implements: blueprint multiarch-and-arm64-containers
29 lines
834 B
Django/Jinja
29 lines
834 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}magnum-base:{{ tag }}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
|
|
{% block magnum_conductor_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{% if install_type == 'binary' %}
|
|
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
|
|
{% set magnum_conductor_packages = [
|
|
'openstack-magnum-conductor'
|
|
] %}
|
|
|
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
|
{% set magnum_conductor_packages = [
|
|
'magnum-conductor'
|
|
] %}
|
|
|
|
{% endif %}
|
|
{{ macros.install_packages(magnum_conductor_packages | customizable("packages")) }}
|
|
|
|
{{ macros.install_kubectl() }}
|
|
{% endif %}
|
|
|
|
{% block magnum_conductor_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|
|
|
|
USER magnum
|