aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xdocker_templates/haproxy/Dockerfile.j220
l---------docker_templates/haproxy/config-external.sh1
l---------docker_templates/haproxy/ensure_latest_config.sh1
l---------docker_templates/haproxy/start.sh1
4 files changed, 23 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"]
diff --git a/docker_templates/haproxy/config-external.sh b/docker_templates/haproxy/config-external.sh
new file mode 120000
index 000000000..d0351492c
--- /dev/null
+++ b/docker_templates/haproxy/config-external.sh
@@ -0,0 +1 @@
+../../docker/common/haproxy/config-external.sh \ No newline at end of file
diff --git a/docker_templates/haproxy/ensure_latest_config.sh b/docker_templates/haproxy/ensure_latest_config.sh
new file mode 120000
index 000000000..a78adec66
--- /dev/null
+++ b/docker_templates/haproxy/ensure_latest_config.sh
@@ -0,0 +1 @@
+../../docker/common/haproxy/ensure_latest_config.sh \ No newline at end of file
diff --git a/docker_templates/haproxy/start.sh b/docker_templates/haproxy/start.sh
new file mode 120000
index 000000000..269fd2786
--- /dev/null
+++ b/docker_templates/haproxy/start.sh
@@ -0,0 +1 @@
+../../docker/common/haproxy/start.sh \ No newline at end of file