summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBogdan Dobrelya <bdobrelia@mirantis.com>2016-07-19 13:14:12 +0200
committerBogdan Dobrelya <bdobrelia@mirantis.com>2016-07-19 13:14:12 +0200
commitf4c0d3fbddaad5079c9d78bc062f07502d1f7c74 (patch)
tree27b13d43f47cd240734e83d825f1c8a19f85b9f8
parent43bbf2b9dca19059f4e41350b981027b2e1a4091 (diff)
Improve docker layering
Do apt clean and /var/lib/rabbitmq state purge at install stage Change-Id: Ibdb3d30f2d7e92a7524778a719b5c9603072aaad Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
Notes
Notes (review): Code-Review+2: Proskurin Kirill <kproskurin@mirantis.com> Code-Review+2: Artur Zarzycki <azarzycki@mirantis.com> Workflow+1: Artur Zarzycki <azarzycki@mirantis.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Tue, 19 Jul 2016 11:49:50 +0000 Reviewed-on: https://review.openstack.org/344171 Project: openstack/fuel-ccp-rabbitmq Branch: refs/heads/master
-rw-r--r--docker/rabbitmq/Dockerfile.j25
1 files changed, 2 insertions, 3 deletions
diff --git a/docker/rabbitmq/Dockerfile.j2 b/docker/rabbitmq/Dockerfile.j2
index 3663817..de30d1d 100644
--- a/docker/rabbitmq/Dockerfile.j2
+++ b/docker/rabbitmq/Dockerfile.j2
@@ -3,9 +3,8 @@ MAINTAINER {{ maintainer }}
3 3
4RUN apt-get install -y --no-install-recommends \ 4RUN apt-get install -y --no-install-recommends \
5 rabbitmq-server \ 5 rabbitmq-server \
6 && apt-get clean 6 && apt-get clean \
7 7 && rm -rf /var/lib/rabbitmq/*
8RUN rm -rf /var/lib/rabbitmq/*
9 8
10COPY rabbitmq_sudoers /etc/sudoers.d/rabbitmq_sudoers 9COPY rabbitmq_sudoers /etc/sudoers.d/rabbitmq_sudoers
11RUN chmod 750 /etc/sudoers.d \ 10RUN chmod 750 /etc/sudoers.d \