summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAreli, Fuss (af732p) <af732p@att.com>2018-03-25 14:22:44 +0300
committerAreli, Fuss (af732p) <af732p@att.com>2018-03-25 15:30:52 +0300
commit10576b5713dd53d98668ed5421f0c62ad6727031 (patch)
treef650cf91333f30ff44bc7828dc095e08abcff626
parent87faf9c68d39064da64f026ac864fd4fb01b812b (diff)
Replace Jetty user id
Replace Jetty user id to enable using it in multiple projects Change-Id: I0a68e3cf08efac94ca1dbc4ca6a3c5effde31101 Issue-ID: SDC-1162 Signed-off-by: Areli, Fuss (af732p) <af732p@att.com>
-rw-r--r--base_sdc-jetty/Dockerfile7
1 files changed, 4 insertions, 3 deletions
diff --git a/base_sdc-jetty/Dockerfile b/base_sdc-jetty/Dockerfile
index a907169..41ee86f 100644
--- a/base_sdc-jetty/Dockerfile
+++ b/base_sdc-jetty/Dockerfile
@@ -30,9 +30,10 @@ RUN set -ex && \
RUN pip install pycurl
-COPY set_user.sh /tmp/set_user.sh
-
-RUN sh -x /tmp/set_user.sh && rm -f /tmp/set_user.sh
+# Replace Jetty user ID
+COPY set_jetty_user.sh /tmp/set_jetty_user.sh
+RUN sh -x /tmp/set_jetty_user.sh && rm -f /tmp/set_jetty_user.sh
+RUN chown -R jetty:jetty ${JETTY_BASE}/webapps /var/lib/jetty
USER jetty