diff options
| author | Jenkins <jenkins@review.openstack.org> | 2015-08-13 04:09:07 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2015-08-13 04:09:08 +0000 |
| commit | d95685ebe8af246f9440461fa73f9d540b085330 (patch) | |
| tree | 4fc2645bb0efa5d05d35616dbd966fceeed7eecf /docker_templates | |
| parent | 59a2d537e0272a444834641f473f30e9850ff948 (diff) | |
| parent | 08b31dcc25d3b72c1a617e300ec17e0bb7c373de (diff) | |
| download | kolla-d95685ebe8af246f9440461fa73f9d540b085330.tar.gz kolla-d95685ebe8af246f9440461fa73f9d540b085330.zip | |
Merge "Add Dockerfile template for haproxy"
Diffstat (limited to 'docker_templates')
| -rwxr-xr-x | docker_templates/haproxy/Dockerfile.j2 | 20 | ||||
| l--------- | docker_templates/haproxy/config-external.sh | 1 | ||||
| l--------- | docker_templates/haproxy/ensure_latest_config.sh | 1 | ||||
| l--------- | docker_templates/haproxy/start.sh | 1 |
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 |
