diff --git a/pega-config-mgt.md b/pega-config-mgt.md new file mode 100644 index 00000000..a825bdf7 --- /dev/null +++ b/pega-config-mgt.md @@ -0,0 +1,14 @@ +## Current State of Pega Platform Configuration in pegasystems/pega + +The pegasystems/pega image in conjunction with [Pega Helm Charts](https://github.com/pegasystems/pega-helm-charts) provides multiple ways to configure and customize a Pega deployment + +The following table provides an overview of the different configuration files in the deployment and the intended use: + +| File Name | Source | Purpose | Customizability | +| --- | --- | --- | --- | +|prconfig.xml|prweb.war|Base prconfig.xml

*Note: May be overidden by helm deployment* | None | +|prlog4j2.xml|prweb.war|Base prlog4j2.xml

*Note: May be overidden by helm deployment* | None | +|context.xml|pegasystems/tomcat|Base web application context

*Note: May be overidden by helm deployment* | None | +|[prweb.xml](https://github.com/pegasystems/docker-pega-web-ready/blob/master/tomcat-conf/Catalina/localhost/prweb.xml)|docker-pega-web-ready|Recommended Pega platform configuration for Kubernetes

*Note: Parameter settings may be overridden by helm* | Parameter values customizable via environment variables | +|[context.xml.tmpl](https://github.com/pegasystems/docker-pega-web-ready/blob/master/tomcat-conf/context.xml.tmpl)|docker-pega-web-ready|Templatized web application context

*Note: Parameter settings may be overridden by helm*| Parameter values customizable via environment variables | +|[setenv.sh](https://github.com/pegasystems/docker-pega-web-ready/blob/master/tomcat-bin/setenv.sh)|docker-pega-web-ready|Sets up environment for Tomcat startup | Values customizable via environment variables | diff --git a/scripts/docker-entrypoint.sh b/scripts/docker-entrypoint.sh index a4e34a37..76066746 100644 --- a/scripts/docker-entrypoint.sh +++ b/scripts/docker-entrypoint.sh @@ -126,8 +126,6 @@ else export SECRET_CASSANDRA_PASSWORD=${CASSANDRA_PASSWORD} fi -/bin/dockerize -template ${CATALINA_HOME}/conf/Catalina/localhost/prweb.xml:${CATALINA_HOME}/conf/Catalina/localhost/prweb.xml - # # Copying mounted prlog4j2 file to webapps/prweb/WEB-INF/classes # @@ -148,6 +146,16 @@ else echo "No prconfig was specified in ${prconfig}. Using defaults." fi +/bin/dockerize -template ${CATALINA_HOME}/conf/Catalina/localhost/prweb.xml:${CATALINA_HOME}/conf/Catalina/localhost/${PEGA_APP_CONTEXT_ROOT}.xml + +# +# Move app to custom context root if specified +# +if [ ${PEGA_APP_CONTEXT_ROOT} != "prweb" ]; then + mv ${CATALINA_HOME}/webapps/prweb ${CATALINA_HOME}/webapps/${PEGA_APP_CONTEXT_ROOT} + rm ${CATALINA_HOME}/conf/Catalina/localhost/prweb.xml +fi + # # Write config files from templates using dockerize ... #