diff --git a/docker_templates/keepalived/Dockerfile.j2 b/docker_templates/keepalived/Dockerfile.j2 new file mode 100644 index 0000000000..4943ae0627 --- /dev/null +++ b/docker_templates/keepalived/Dockerfile.j2 @@ -0,0 +1,22 @@ +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 \ + hostname \ + keepalived \ + socat \ + && 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 check_alive.sh / +COPY config-external.sh /opt/kolla/ + +CMD ["/start.sh"] diff --git a/docker_templates/keepalived/check_alive.sh b/docker_templates/keepalived/check_alive.sh new file mode 120000 index 0000000000..3390a28d77 --- /dev/null +++ b/docker_templates/keepalived/check_alive.sh @@ -0,0 +1 @@ +../../docker/common/keepalived/check_alive.sh \ No newline at end of file diff --git a/docker_templates/keepalived/config-external.sh b/docker_templates/keepalived/config-external.sh new file mode 120000 index 0000000000..6b3a07c296 --- /dev/null +++ b/docker_templates/keepalived/config-external.sh @@ -0,0 +1 @@ +../../docker/common/keepalived/config-external.sh \ No newline at end of file diff --git a/docker_templates/keepalived/start.sh b/docker_templates/keepalived/start.sh new file mode 120000 index 0000000000..65aea95d0f --- /dev/null +++ b/docker_templates/keepalived/start.sh @@ -0,0 +1 @@ +../../docker/common/keepalived/start.sh \ No newline at end of file