2168224aa3
For CentOS nfv-extras repository will be used, for Ubuntu - a PPA maintained by Vincent Bernat (Debian developer and package maintainer).. Debian Bullseye already uses 2.2. Change-Id: I7cd753cf66b492c75a185e365cf988cabb9c0142
27 lines
786 B
Django/Jinja
27 lines
786 B
Django/Jinja
FROM {{ namespace }}/{{ infra_image_prefix }}base:{{ tag }}
|
|
{% block labels %}
|
|
LABEL maintainer="{{ maintainer }}" name="{{ image_name }}" build-date="{{ build_date }}"
|
|
{% endblock %}
|
|
|
|
{% block haproxy_header %}{% endblock %}
|
|
|
|
{% import "macros.j2" as macros with context %}
|
|
|
|
{{ macros.enable_extra_repos(['haproxy']) }}
|
|
|
|
{{ macros.configure_user(name='haproxy') }}
|
|
|
|
{% set haproxy_packages = [
|
|
'haproxy'
|
|
] %}
|
|
{{ macros.install_packages(haproxy_packages | customizable("packages")) }}
|
|
|
|
RUN mkdir -p /var/lib/kolla/haproxy \
|
|
&& chown -R haproxy: /var/lib /run
|
|
|
|
COPY ensure_latest_config.sh /usr/local/bin/kolla_ensure_haproxy_latest_config
|
|
RUN chmod 755 /usr/local/bin/kolla_ensure_haproxy_latest_config
|
|
|
|
{% block haproxy_footer %}{% endblock %}
|
|
{% block footer %}{% endblock %}
|