Code Review
/
portal.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
5c7d5cc
)
Change $TOMCATHOME/temp ownership for unprivileged user in SDK
78/105778/1
3.2.0
author
Pawel Wieczorek
<p.wieczorek2@samsung.com>
Fri, 10 Apr 2020 07:52:45 +0000
(09:52 +0200)
committer
Sunder Tattavarada
<statta@research.att.com>
Fri, 10 Apr 2020 13:37:24 +0000
(13:37 +0000)
Issue-ID: PORTAL-849
Change-Id: I4c437777fcaf0db337fc3a126f12788962777e49
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
deliveries/Dockerfile.sdk
patch
|
blob
|
history
diff --git
a/deliveries/Dockerfile.sdk
b/deliveries/Dockerfile.sdk
index
4757d8a
..
b85cf84
100644
(file)
--- a/
deliveries/Dockerfile.sdk
+++ b/
deliveries/Dockerfile.sdk
@@
-39,7
+39,10
@@
RUN cd ${SDKCONTEXT} && unzip -q *.war && rm *.war
VOLUME ${TOMCATHOME}/logs
# Switch to unprivileged user
-RUN addgroup -g 1000 -S portal && adduser -u 1000 -S portal -G portal
+RUN addgroup -g 1000 -S portal && \
+ adduser -u 1000 -S portal -G portal && \
+ mkdir -p ${TOMCATHOME}/temp && \
+ chown portal:portal ${TOMCATHOME}/temp
USER portal
# Switch back to root