Add Dockerfile template for haproxy
Change-Id: If269a483a1f2a9fd1258fdcb90b139d137037dfd Partially-Implements: blueprint dockerfile-template
This commit is contained in:
parent
671014e7a6
commit
08b31dcc25
20
docker_templates/haproxy/Dockerfile.j2
Executable file
20
docker_templates/haproxy/Dockerfile.j2
Executable file
@ -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"]
|
1
docker_templates/haproxy/config-external.sh
Symbolic link
1
docker_templates/haproxy/config-external.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../docker/common/haproxy/config-external.sh
|
1
docker_templates/haproxy/ensure_latest_config.sh
Symbolic link
1
docker_templates/haproxy/ensure_latest_config.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../docker/common/haproxy/ensure_latest_config.sh
|
1
docker_templates/haproxy/start.sh
Symbolic link
1
docker_templates/haproxy/start.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../../docker/common/haproxy/start.sh
|
Loading…
Reference in New Issue
Block a user