Skip to content

Commit 2df3718

Browse files
committed
Document uses of resources directory
Previously there were a number of components that took advantage of the copy_resources() functionality for configuration. This facility is intended to be used by people who fork the buildpack as well, but wasn't documented anywhere. This change updates the documentation to indicate where the resources directory can be used and how to use it. The documentation also includes some examples of things you use the resources directory for (e.g. JCE Unlimited Security). [#68345350]
1 parent e32e6c6 commit 2df3718

5 files changed

Lines changed: 12 additions & 1 deletion

File tree

docs/container-tomcat.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ The container can be configured by modifying the [`config/tomcat.yml`][] file in
3333
| `redis_store.timeout` | The Redis connection timeout (in milliseconds).
3434
| `redis_store.connection_pool_size` | The Redis connection pool size. Note that this is per-instance, not per-application.
3535

36+
### Additional Resources
37+
The container can also be configured by overlaying a set of resources on the default distribution. To do this, add files to the `resources/tomcat` directory in the buildpack fork. For example, to override the default `logging.properties` add your custom file to `resources/tomcat/conf/logging.properties`.
38+
3639
## Session Replication
3740
By default, the Tomcat instance is configured to store all Sessions and their data in memory. Under certain cirmcumstances it my be appropriate to persist the Sessions and their data to a repository. When this is the case (small amounts of data that should survive the failure of any individual instance), the buildpack can automatically configure Tomcat to do so.
3841

docs/framework-app_dynamics_agent.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ The framework can be configured by modifying the [`config/app_dynamics_agent.yml
3636
### Additional Resources
3737
The framework can also be configured by overlaying a set of resources on the default distribution. To do this, add files to the `resources/app_dynamics_agent` directory in the buildpack fork. For example, to override the default `app-agent-config.xml` add your custom file to `resources/app_dynamics_agent/conf/app-agent-config.xml`.
3838

39-
4039
[`config/app_dynamics_agent.yml`]: ../config/app_dynamics_agent.yml
4140
[AppDynamics Service]: http://www.appdynamics.com
4241
[Configuration and Extension]: ../README.md#configuration-and-extension

docs/framework-new_relic_agent.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ The framework can be configured by modifying the [`config/new_relic_agent.yml`][
3535
| `repository_root` | The URL of the New Relic repository index ([details][repositories]).
3636
| `version` | The version of New Relic to use. Candidate versions can be found in [this listing][].
3737

38+
### Additional Resources
39+
The framework can also be configured by overlaying a set of resources on the default distribution. To do this, add files to the `resources/new_relic_agent` directory in the buildpack fork. For example, to override the default `new_relic.yml` add your custom file to `resources/new_relic_agent/newrelic.yml`.
40+
3841
[Configuration and Extension]: ../README.md#configuration-and-extension
3942
[`config/new_relic_agent.yml`]: ../config/new_relic_agent.yml
4043
[New Relic Service]: https://newrelic.com

docs/jre-open_jdk_jre.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ The JRE can be configured by modifying the [`config/open_jdk_jre.yml`][] file in
2525
| `memory_sizes` | Optional memory sizes, described below under "Memory Sizes".
2626
| `memory_heuristics` | Default memory size weightings, described below under "Memory Weightings.
2727

28+
### Additional Resources
29+
The JRE can also be configured by overlaying a set of resources on the default distribution. To do this, add files to the `resources/open_jdk_jre` directory in the buildpack fork. For example, to add the JCE Unlimited Strength `local_policy.jar` add your file to `resources/open_jdk_jre/lib/security/local_policy.jar`.
30+
2831
### Memory
2932
The total available memory is specified when an application is pushed as part of it's configuration. The Java buildpack uses this value to control the JRE's use of various regions of memory. The JRE memory settings can be influenced by configuring the `memory_sizes` and/or `memory_heuristics` mappings.
3033

docs/jre-oracle_jre.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ The JRE can be configured by modifying the [`config/oracle_jre.yml`][] file in t
3434
| `memory_sizes` | Optional memory sizes, described below under "Memory Sizes".
3535
| `memory_heuristics` | Default memory size weightings, described below under "Memory Weightings.
3636

37+
### Additional Resources
38+
The JRE can also be configured by overlaying a set of resources on the default distribution. To do this, add files to the `resources/oracle_jre` directory in the buildpack fork. For example, to add the JCE Unlimited Strength `local_policy.jar` add your file to `resources/oracle_jre/lib/security/local_policy.jar`.
39+
3740
### Memory
3841
The total available memory is specified when an application is pushed as part of it's configuration. The Java buildpack uses this value to control the JRE's use of various regions of memory. The JRE memory settings can be influenced by configuring the `memory_sizes` and/or `memory_heuristics` mappings.
3942

0 commit comments

Comments
 (0)