From e299720eb7899abd97eff8f491e0ec2aa2843062 Mon Sep 17 00:00:00 2001
From: Christian Berendt <berendt@betacloud-solutions.de>
Date: Thu, 16 Jun 2016 01:24:59 +0200
Subject: [PATCH] Fix ownership of nova-novncproxy-source directory

This solves the following issue when using latest noVNC sources for
the nova-novncproxy container:

OSError: [Errno 13] Permission denied: '/usr/share/novnc'

Change-Id: Iea1f3dfcc696f53431e99570019e27cdef4ca5cb
Closes-bug: #1593006
---
 docker/nova/nova-novncproxy/Dockerfile.j2 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/docker/nova/nova-novncproxy/Dockerfile.j2 b/docker/nova/nova-novncproxy/Dockerfile.j2
index ee1d6bf68e..01fb62ce7d 100644
--- a/docker/nova/nova-novncproxy/Dockerfile.j2
+++ b/docker/nova/nova-novncproxy/Dockerfile.j2
@@ -19,7 +19,9 @@ RUN apt-get -y install --no-install-recommends \
 {% elif install_type == 'source' %}
 
 ADD nova-novncproxy-archive /usr/share/nova-novncproxy-source
-RUN cd /usr/share && ln -s nova-novncproxy-source/* novnc
+RUN cd /usr/share \
+    && ln -s nova-novncproxy-source/* novnc \
+    && chown -R nova: /usr/share/nova-novncproxy-source
 
 {% endif %}
 
-- 
GitLab