aboutsummaryrefslogtreecommitdiff
path: root/docker_templates/haproxy/Dockerfile.j2
diff options
context:
space:
mode:
Diffstat (limited to 'docker_templates/haproxy/Dockerfile.j2')
-rwxr-xr-xdocker_templates/haproxy/Dockerfile.j220
1 files changed, 20 insertions, 0 deletions
diff --git a/docker_templates/haproxy/Dockerfile.j2 b/docker_templates/haproxy/Dockerfile.j2
new file mode 100755
index 000000000..ba6c76b21
--- /dev/null
+++ b/docker_templates/haproxy/Dockerfile.j2
@@ -0,0 +1,20 @@
+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 in ['ubuntu', 'debian'] %}
+
+RUN echo '{{ install_type }} not yet available for {{ base_distro }}' \
+ && /bin/false
+
+{% endif %}
+
+COPY start.sh /
+COPY config-external.sh ensure_latest_config.sh /opt/kolla/
+
+CMD ["/start.sh"]