From 61541fe65c2bc1c502ec6ce3046c4edbe49359ac Mon Sep 17 00:00:00 2001
From: Jorrit Schaap <schaap@astron.nl>
Date: Fri, 29 Jan 2021 13:44:16 +0100
Subject: [PATCH] TMSS-573: chown tree

---
 SAS/TMSS/backend/src/Dockerfile-tmss | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/SAS/TMSS/backend/src/Dockerfile-tmss b/SAS/TMSS/backend/src/Dockerfile-tmss
index b3cae8d7e90..f742be131db 100644
--- a/SAS/TMSS/backend/src/Dockerfile-tmss
+++ b/SAS/TMSS/backend/src/Dockerfile-tmss
@@ -20,6 +20,11 @@ ENV LOFARROOT=/opt/lofar
 
 # Add the rest of the code
 COPY --chown=lofarsys:lofarsys ./installed /opt/lofar
+
+# docker only chowns the copied dir, not the full tree
+RUN chown -R lofarsys:lofarsys /opt/lofar
+
+# magic path manipulation
 RUN sed -i "s/lfr_root=.*/lfr_root=\/opt\/lofar/g" /opt/lofar/lofarinit.sh
 
 # Make port 8000,8008 available for the app
-- 
GitLab