From 1cf92be7b2380634f636dffc98c98016271bd6e7 Mon Sep 17 00:00:00 2001 From: Jeffrey Zhang Date: Mon, 11 Jan 2016 11:01:30 +0800 Subject: Share the same image between swift services Get rid of swfit children images by share the same image in the swift account, swift object and swift container services Closes-Bug: #1534476 Change-Id: I929689f93b56396a41b19fda46e4679c4de84ca1 --- docker/swift/swift-object/Dockerfile.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 docker/swift/swift-object/Dockerfile.j2 (limited to 'docker/swift/swift-object') diff --git a/docker/swift/swift-object/Dockerfile.j2 b/docker/swift/swift-object/Dockerfile.j2 new file mode 100644 index 000000000..5dc27404f --- /dev/null +++ b/docker/swift/swift-object/Dockerfile.j2 @@ -0,0 +1,13 @@ +FROM {{ namespace }}/{{ image_prefix }}swift-base:{{ tag }} +MAINTAINER {{ maintainer }} + +{% if install_type == 'binary' %} + {% if base_distro in ['centos', 'fedora', 'oraclelinux', 'rhel'] %} + +RUN yum -y install openstack-swift-object \ + && yum clean all + + {% endif %} +{% endif %} + +{{ include_footer }} -- cgit v1.2.3