You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/06/20 13:51:31 UTC

[GitHub] Himavanth commented on a change in pull request #3579: Using non root user in controller

Himavanth commented on a change in pull request #3579: Using non root user in controller
URL: https://github.com/apache/incubator-openwhisk/pull/3579#discussion_r196787054
 
 

 ##########
 File path: core/controller/Dockerfile
 ##########
 @@ -16,19 +16,25 @@
 
 FROM scala
 
+ENV UID=1001 \
+    NOT_ROOT_USER=owuser
+
 # Install swagger-ui
 RUN curl -sSL -o swagger-ui-v3.6.0.tar.gz --no-verbose https://github.com/swagger-api/swagger-ui/archive/v3.6.0.tar.gz && \
     mkdir swagger-ui && \
     tar zxf swagger-ui-v3.6.0.tar.gz -C /swagger-ui --strip-components=2 swagger-ui-3.6.0/dist && \
     rm swagger-ui-v3.6.0.tar.gz && \
     sed -i s#http://petstore.swagger.io/v2/swagger.json#/api/v1/api-docs#g /swagger-ui/index.html
 
-#
 # Copy app jars
 ADD build/distributions/controller.tar /
 
 COPY init.sh /
 RUN chmod +x init.sh
+RUN chmod 777 /root
 
 Review comment:
   The jmx files are moved to this dir at init stage and then their permissions are changed to 600 by copyJMXFiles.sh.  This is the only permission combination that i found working. There are no other files under root folder. If required we could create a different folder just to store these files.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services