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