de6650874d
haproxy-system-wrapper is a solution for systemd from upstream. it can handle the reload graceful. Change-Id: I6a3d141af065e429bd1be1b7252f5c6df1fda3bb Closes-Bug: #1559238
20 lines
508 B
Django/Jinja
20 lines
508 B
Django/Jinja
FROM {{ namespace }}/{{ image_prefix }}base:{{ tag }}
|
|
MAINTAINER {{ maintainer }}
|
|
|
|
{% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %}
|
|
|
|
RUN yum -y install haproxy \
|
|
&& yum clean all
|
|
|
|
{% elif base_distro in ['debian', 'ubuntu'] %}
|
|
|
|
RUN apt-get install -y --no-install-recommends haproxy \
|
|
&& apt-get clean
|
|
|
|
{% endif %}
|
|
|
|
COPY ensure_latest_config.sh /usr/local/bin/kolla_ensure_haproxy_latest_config
|
|
RUN chmod 755 /usr/local/bin/kolla_ensure_haproxy_latest_config
|
|
|
|
{{ include_footer }}
|