aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-be/sdc-backend
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-be/sdc-backend')
-rw-r--r--catalog-be/sdc-backend/Dockerfile3
-rw-r--r--catalog-be/sdc-backend/context.xml.template14
2 files changed, 16 insertions, 1 deletions
diff --git a/catalog-be/sdc-backend/Dockerfile b/catalog-be/sdc-backend/Dockerfile
index fc0c9cffa2..2e23d41910 100644
--- a/catalog-be/sdc-backend/Dockerfile
+++ b/catalog-be/sdc-backend/Dockerfile
@@ -4,7 +4,8 @@ COPY chef-solo /root/chef-solo/
COPY chef-repo/cookbooks/. /root/chef-solo/cookbooks/
-ADD --chown=jetty:jetty catalog-be-*.war ${JETTY_BASE}/webapps/
+ADD --chown=jetty:jetty catalog-be-*.war ${JETTY_BASE}/webappwar/
+ADD --chown=jetty:jetty context.xml ${JETTY_BASE}/webapps/
USER root
diff --git a/catalog-be/sdc-backend/context.xml.template b/catalog-be/sdc-backend/context.xml.template
new file mode 100644
index 0000000000..1f1741f241
--- /dev/null
+++ b/catalog-be/sdc-backend/context.xml.template
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE Configure PUBLIC
+ "-//Mort Bay Consulting//DTD Configure//EN"
+ "http://www.eclipse.org/jetty/configure_9_0.dtd">
+
+<Configure class="org.eclipse.jetty.webapp.WebAppContext">
+ <Set name="contextPath">/</Set>
+ <Set name="war">
+ <SystemProperty name="jetty.base"/>/webappwar/catalog-be-projectversion.war
+ </Set>
+ <Set name="extraClasspath">
+ <SystemProperty name="jetty.base"/>/plugins/*
+ </Set>
+</Configure>