aboutsummaryrefslogtreecommitdiff
path: root/docker_templates
diff options
context:
space:
mode:
Diffstat (limited to 'docker_templates')
-rw-r--r--docker_templates/data/Dockerfile.j24
-rw-r--r--docker_templates/galera/Dockerfile.j26
-rw-r--r--docker_templates/rabbitmq/Dockerfile.j26
3 files changed, 13 insertions, 3 deletions
diff --git a/docker_templates/data/Dockerfile.j2 b/docker_templates/data/Dockerfile.j2
new file mode 100644
index 000000000..18933ef55
--- /dev/null
+++ b/docker_templates/data/Dockerfile.j2
@@ -0,0 +1,4 @@
+FROM {{ base_distro }}:{{ base_distro_tag }}
+MAINTAINER Kolla Project (https://launchpad.net/kolla)
+
+CMD /bin/sleep infinity
diff --git a/docker_templates/galera/Dockerfile.j2 b/docker_templates/galera/Dockerfile.j2
index 90975ddab..2d656053a 100644
--- a/docker_templates/galera/Dockerfile.j2
+++ b/docker_templates/galera/Dockerfile.j2
@@ -21,12 +21,16 @@ RUN yum install -y http://www.percona.com/redir/downloads/percona-release/redhat
percona-xtrabackup \
pv \
tar \
- expect
+ expect \
+ && rm -rf /var/lib/mysql/*
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN ["/bin/false"]
+# TODO(sdake) when ubuntu support is implemented we will need a line
+# && rm -rf /var/lib/mysql/
+
{% endif %}
COPY config-galera.sh /opt/kolla/config/
diff --git a/docker_templates/rabbitmq/Dockerfile.j2 b/docker_templates/rabbitmq/Dockerfile.j2
index 63dc1ff3c..119a30317 100644
--- a/docker_templates/rabbitmq/Dockerfile.j2
+++ b/docker_templates/rabbitmq/Dockerfile.j2
@@ -6,14 +6,16 @@ MAINTAINER Kolla Project (https://launchpad.net/kolla)
RUN yum -y install \
hostname \
rabbitmq-server \
- && yum clean all
+ && yum clean all \
+ && rm -rf /var/lib/rabbitmq/*
{% elif base_distro in ['ubuntu', 'debian'] %}
RUN apt-get install -y --no-install-recommends \
hostname \
rabbitmq-server \
- && apt-get clean
+ && apt-get clean \
+ && rm -rf /var/lib/rabbitmq/*
{% endif %}