Merge "Add header/footer blocks to the kube images"

This commit is contained in:
Jenkins 2017-02-21 18:39:25 +00:00 committed by Gerrit Code Review
commit 0bbd04a48a
6 changed files with 29 additions and 0 deletions

View File

@ -3,6 +3,8 @@ MAINTAINER {{ maintainer }}
ENV KUBERNETES_COMPONENT=kube-apiserver
{% block kube_apiserver_amd64_header %}{% endblock %}
RUN true \
&& curl -L ${KUBERNETES_DOWNLOAD_ROOT}/${KUBERNETES_COMPONENT} -o /usr/bin/${KUBERNETES_COMPONENT} \
&& chmod +x /usr/bin/${KUBERNETES_COMPONENT}
@ -10,3 +12,6 @@ RUN true \
# Clear any customisation by Kolla to entrypoint & command
ENTRYPOINT []
CMD []
{% block kube_apiserver_amd64_footer %}{% endblock %}
{% block footer %}{% endblock %}

View File

@ -4,3 +4,7 @@ MAINTAINER {{ maintainer }}
ENV KUBERNETES_VERSION=v1.5.1
ENV KUBERNETES_DOWNLOAD_ROOT=https://storage.googleapis.com/kubernetes-release/release/${KUBERNETES_VERSION}/bin/linux/amd64
{% block kube_base_header %}{% endblock %}
{% block kube_base_footer %}{% endblock %}

View File

@ -3,6 +3,8 @@ MAINTAINER {{ maintainer }}
ENV KUBERNETES_COMPONENT=kube-controller-manager
{% block kube_controller_manager_amd64_header %}{% endblock %}
{% import "macros.j2" as macros with context %}
{% if base_distro in ['centos', 'oraclelinux', 'rhel'] %}
@ -23,3 +25,6 @@ RUN true \
# Clear any customisation by Kolla to entrypoint & command
ENTRYPOINT []
CMD []
{% block kube_controller_manager_amd64_footer %}{% endblock %}
{% block footer %}{% endblock %}

View File

@ -3,6 +3,8 @@ MAINTAINER {{ maintainer }}
ENV KUBERNETES_COMPONENT=kube-discovery
{% block kube_discovery_amd64_header %}{% endblock %}
# To match upstream we load the binary to /usr/local/bin
RUN true \
&& curl -L ${KUBERNETES_DOWNLOAD_ROOT}/${KUBERNETES_COMPONENT} -o /usr/local/bin/${KUBERNETES_COMPONENT} \
@ -11,3 +13,6 @@ RUN true \
# Clear any customisation by Kolla to entrypoint & command
ENTRYPOINT []
CMD []
{% block kube_discovery_amd64_footer %}{% endblock %}
{% block footer %}{% endblock %}

View File

@ -3,6 +3,8 @@ MAINTAINER {{ maintainer }}
ENV KUBERNETES_COMPONENT=kube-proxy
{% block kube_proxy_amd64_header %}{% endblock %}
RUN true \
&& curl -L ${KUBERNETES_DOWNLOAD_ROOT}/${KUBERNETES_COMPONENT} -o /usr/bin/${KUBERNETES_COMPONENT} \
&& chmod +x /usr/bin/${KUBERNETES_COMPONENT}
@ -10,3 +12,6 @@ RUN true \
# Clear any customisation by Kolla to entrypoint & command
ENTRYPOINT []
CMD []
{% block kube_proxy_amd64_footer %}{% endblock %}
{% block footer %}{% endblock %}

View File

@ -3,6 +3,8 @@ MAINTAINER {{ maintainer }}
ENV KUBERNETES_COMPONENT=kube-scheduler
{% block kube_scheduler_amd64_header %}{% endblock %}
RUN true \
&& curl -L ${KUBERNETES_DOWNLOAD_ROOT}/${KUBERNETES_COMPONENT} -o /usr/bin/${KUBERNETES_COMPONENT} \
&& chmod +x /usr/bin/${KUBERNETES_COMPONENT}
@ -10,3 +12,6 @@ RUN true \
# Clear any customisation by Kolla to entrypoint & command
ENTRYPOINT []
CMD []
{% block kube_scheduler_amd64_footer %}{% endblock %}
{% block footer %}{% endblock %}