summaryrefslogtreecommitdiffstats
path: root/catalog-be/sdc-backend
diff options
context:
space:
mode:
authorMichaelMorris <michael.morris@est.tech>2020-02-08 22:55:49 +0000
committerOfir Sonsino <ofir.sonsino@intl.att.com>2020-02-18 16:06:37 +0000
commit580e536e8b86a50789031f56a0e20a4985d738a0 (patch)
tree9f47a6e10f55482ca590e1ff7b963dc0245421bc /catalog-be/sdc-backend
parent4aa20bc42b7bd98dde15f7594084669eb92412c2 (diff)
Backend extensibility
Issue-ID: SDC-2761 Change-Id: I9287e0255fdda8da61cafc4b761190c8992b9aff Signed-off-by: MichaelMorris <michael.morris@est.tech>
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>