aboutsummaryrefslogtreecommitdiff
path: root/docker/haproxy/Dockerfile.j2
blob: 2858f436a9fcab40db669bf5acc09313ee33c400 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
MAINTAINER Kolla Project (https://launchpad.net/kolla)

{% if base_distro in ['fedora', 'centos', 'oraclelinux'] %}

RUN yum -y install \
        haproxy \
    && yum clean all

{% elif base_distro == 'ubuntu' %}

RUN apt-get install -y --no-install-recommends -t trusty-backports haproxy \
    && apt-get clean

{% elif base_distro == 'debian' %}

RUN apt-get install -y --no-install-recommends haproxy \
    && apt-get clean

{% endif %}

COPY start.sh /
COPY config-external.sh ensure_latest_config.sh /opt/kolla/

CMD ["/start.sh"]

{{ include_footer }}