From 2069d7562cf8e4bdcf462fc9c5c4f7adb21a319c Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Thu, 7 Apr 2016 15:00:26 +0200 Subject: [PATCH] Create and chown /etc/heka directory This directory is needed for kolla-mesos to save config files there. Change-Id: Ia9810061d370bc600dfffeb33a4d4402c423e3fc Closes-Bug: 1567437 --- docker/heka/Dockerfile.j2 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/heka/Dockerfile.j2 b/docker/heka/Dockerfile.j2 index bc8db7d4e9..4714dd2bd6 100644 --- a/docker/heka/Dockerfile.j2 +++ b/docker/heka/Dockerfile.j2 @@ -5,7 +5,8 @@ MAINTAINER {{ maintainer }} RUN yum -y install https://github.com/mozilla-services/heka/releases/download/v0.10.0/heka-0_10_0-linux-amd64.rpm \ && yum clean all \ - && useradd --user-group heka + && useradd --user-group heka \ + && mkdir /etc/heka {% elif base_distro in ['ubuntu'] %} @@ -25,7 +26,7 @@ COPY extend_start.sh /usr/local/bin/kolla_extend_start RUN usermod -a -G kolla heka \ && chmod 440 /etc/sudoers.d/heka_sudoers \ && chmod 755 /usr/local/bin/kolla_extend_start \ - && chown -R heka: /usr/share/heka + && chown -R heka: /usr/share/heka /etc/heka {{ include_footer }}