Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue-60: Add overview of config files in docker-pega-web-ready image (https://github.com/pegasystems/docker-pega-web-ready/issues/60) #63

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions pega-config-mgt.md
Original file line number Diff line number Diff line change
@@ -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 <br/><br/>*Note: May be overidden by helm deployment* | None |
|prlog4j2.xml|prweb.war|Base prlog4j2.xml <br/><br/>*Note: May be overidden by helm deployment* | None |
|context.xml|pegasystems/tomcat|Base web application context <br/><br/>*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 <br/><br/>*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 <br/><br/>*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 |
12 changes: 10 additions & 2 deletions scripts/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand All @@ -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 ...
#
Expand Down