From c2466dc60e155bb9cf5148eebee56dca5ed061fc Mon Sep 17 00:00:00 2001 From: Sam Yaple Date: Sun, 16 Aug 2015 04:17:38 +0000 Subject: [PATCH] Add Dockerfile template for keepalived Change-Id: Ie5559eef2ed7996d214212061a90a5bdeed3c189 Partially-Implements: blueprint dockerfile-template --- docker_templates/keepalived/Dockerfile.j2 | 22 +++++++++++++++++++ docker_templates/keepalived/check_alive.sh | 1 + .../keepalived/config-external.sh | 1 + docker_templates/keepalived/start.sh | 1 + 4 files changed, 25 insertions(+) create mode 100644 docker_templates/keepalived/Dockerfile.j2 create mode 120000 docker_templates/keepalived/check_alive.sh create mode 120000 docker_templates/keepalived/config-external.sh create mode 120000 docker_templates/keepalived/start.sh 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