aboutsummaryrefslogtreecommitdiff
path: root/docker/haproxy/Dockerfile.j2
blob: 38f5dc5c1478264cff61380c72e6de28f394d3d3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 }}