aboutsummaryrefslogtreecommitdiff
path: root/docker_templates/haproxy
diff options
context:
space:
mode:
authorweiyu <weiyu@unitedstack.com>2015-08-12 21:35:59 +0800
committerweiyu <weiyu@unitedstack.com>2015-08-13 10:36:07 +0800
commit08b31dcc25d3b72c1a617e300ec17e0bb7c373de (patch)
tree2c754b322ba605a7613758216aa5765b97d66c87 /docker_templates/haproxy
parent671014e7a6451bf8a7f8ea7c04208d6a22f27370 (diff)
downloadkolla-08b31dcc25d3b72c1a617e300ec17e0bb7c373de.tar.gz
kolla-08b31dcc25d3b72c1a617e300ec17e0bb7c373de.zip
Add Dockerfile template for haproxy
Change-Id: If269a483a1f2a9fd1258fdcb90b139d137037dfd Partially-Implements: blueprint dockerfile-template
Diffstat (limited to 'docker_templates/haproxy')
-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