aboutsummaryrefslogtreecommitdiff
path: root/docker_templates/swift/swift-data
diff options
context:
space:
mode:
authorakwasniewska <alicja.kwasniewska@intel.com>2015-08-17 06:13:15 +0200
committerakwasniewska <alicja.kwasniewska@intel.com>2015-08-17 06:13:15 +0200
commit0a1c94c33f84f123ea892aea27e35bc2abf622a9 (patch)
treeba1f0d33fc8db7ee95218679b2b488854b1d0881 /docker_templates/swift/swift-data
parent9bd3ea7207c08971bc604b2d1a99bfa431780c02 (diff)
downloadkolla-0a1c94c33f84f123ea892aea27e35bc2abf622a9.tar.gz
kolla-0a1c94c33f84f123ea892aea27e35bc2abf622a9.zip
Add Dockerfile template for swift
Change-Id: Ie500f9b8640129e464075e4bebd628cf4a4d7f86 Partially-Implements: blueprint dockerfile-template
Diffstat (limited to 'docker_templates/swift/swift-data')
-rw-r--r--docker_templates/swift/swift-data/Dockerfile.j213
1 files changed, 13 insertions, 0 deletions
diff --git a/docker_templates/swift/swift-data/Dockerfile.j2 b/docker_templates/swift/swift-data/Dockerfile.j2
new file mode 100644
index 000000000..21bfc1d43
--- /dev/null
+++ b/docker_templates/swift/swift-data/Dockerfile.j2
@@ -0,0 +1,13 @@
+FROM {{ namespace }}/{{ base_distro }}-{{ install_type }}-base:{{ tag }}
+MAINTAINER Kolla Project (https://launchpad.net.kolla)
+
+# NOTE(pbourke): This is emulating the Swift "all-in-one" setups where there are 3 disks/partitions
+# on which to mirror data. This is extremely inefficient and is really only to prove everything
+# works in an AIO setup. For production deploys the Ansible provisioned setup should be used.
+VOLUME [ "/srv/node/sdb1" ]
+VOLUME [ "/srv/node/sdb2" ]
+VOLUME [ "/srv/node/sdb3" ]
+
+# Command needed to start the data container.
+# Note: data containers do not need to be persistent.
+CMD ["/bin/true"]