[ESR] Force esr-gui to run as non-root 99/107699/1
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 14 May 2020 17:41:20 +0000 (19:41 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Thu, 14 May 2020 17:41:20 +0000 (19:41 +0200)
commit4c62d4db068a64494fd19870977c3eaa0b63c670
treeb536725a93aabc46f9bf116cc186434438910c8e
parentc32ee22a8436a184d710db9d06da85c4ca385efc
[ESR] Force esr-gui to run as non-root

Use securityContext to run esr-gui as a non-root user.
Unfortunately esr-gui docker is built in a way that doesn't allow use
to just change the user and continue using it. We need to copy tomcat
directory to volume to make sure that tomcat is able to create
additional directories after it starts.

Issue-ID: AAI-2896
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: Iae060ea691ce492e8ccb2d540a48c085c0fd66ae
kubernetes/esr/charts/esr-gui/templates/deployment.yaml