summaryrefslogtreecommitdiffstats
path: root/sdc-os-chef/sdc-backend
diff options
context:
space:
mode:
authorAreli Fuss <af732p@att.com>2017-10-24 10:58:20 +0300
committerAreli Fuss <af732p@att.com>2017-10-24 10:58:20 +0300
commitcec9123e81b2c8fc0be59915757fbdb17c84f296 (patch)
tree45186306cf9c6b822c87d3abfd03ace25c134c85 /sdc-os-chef/sdc-backend
parent70b85dde11ead19c1bc45eee6f607cac596dbe5c (diff)
Add user root for running commands
Add user root definition before run command Change-Id: I22548ac31a0028b0f7ff13597c25675eed96ccea Issue-Id: SDC-525 Signed-off-by: Areli Fuss <af732p@att.com>
Diffstat (limited to 'sdc-os-chef/sdc-backend')
-rw-r--r--sdc-os-chef/sdc-backend/Dockerfile12
1 files changed, 8 insertions, 4 deletions
diff --git a/sdc-os-chef/sdc-backend/Dockerfile b/sdc-os-chef/sdc-backend/Dockerfile
index dd38726be3..7c6d8bf723 100644
--- a/sdc-os-chef/sdc-backend/Dockerfile
+++ b/sdc-os-chef/sdc-backend/Dockerfile
@@ -4,16 +4,20 @@ COPY chef-solo /root/chef-solo/
COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
-ADD onboarding-be-*.war ${JETTY_BASE}/webapps/
+ADD onboarding-be-*.war ${JETTY_BASE}/webapps/
-ADD catalog-be-*.war ${JETTY_BASE}/webapps/
+ADD catalog-be-*.war ${JETTY_BASE}/webapps/
-ADD api-docs.war ${JETTY_BASE}/webapps/
+ADD api-docs.war ${JETTY_BASE}/webapps/
-RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
+USER root
+
+RUN chown -R jetty:jetty ${JETTY_BASE}/webapps
COPY startup.sh /root/
RUN chmod 770 /root/startup.sh
+USER jetty
+
ENTRYPOINT [ "/root/startup.sh" ]