summaryrefslogtreecommitdiff
path: root/docker/haproxy
diff options
context:
space:
mode:
Diffstat (limited to 'docker/haproxy')
-rw-r--r--docker/haproxy/Dockerfile.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/docker/haproxy/Dockerfile.j2 b/docker/haproxy/Dockerfile.j2
index d21969629..3d2527772 100644
--- a/docker/haproxy/Dockerfile.j2
+++ b/docker/haproxy/Dockerfile.j2
@@ -15,6 +15,10 @@ RUN apt-get install -y --no-install-recommends \
{% endif %}
+RUN usermod -a -G kolla haproxy \
+ && mkdir -p /var/lib/kolla/haproxy \
+ && chown -R haproxy: /var/lib /run
+
COPY ensure_latest_config.sh /usr/local/bin/kolla_ensure_haproxy_latest_config
RUN chmod 755 /usr/local/bin/kolla_ensure_haproxy_latest_config