You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tags are printed to standard output by the buildpack detect script
@@ -49,6 +49,9 @@ The container can be configured by modifying the [`config/tomcat.yml`][] file in
49
49
| `tomcat.context_path` | The context path to expose the application at.
50
50
| `tomcat.repository_root` | The URL of the Tomcat repository index ([details][repositories]).
51
51
| `tomcat.version` | The version of Tomcat to use. Candidate versions can be found in [this listing](http://download.pivotal.io.s3.amazonaws.com/tomcat/index.yml).
52
+
| `tomcat.external_configuration_enabled` | Set to `true` to be able to supply an external Tomcat configuration. Default is `false`.
53
+
| `external_configuration.version` | The version of the External Tomcat Configuration to use. Candidate versions can be found in the the repository that you have created to house the External Tomcat Configuration. Note: It is required the external configuration to allow symlinks.
54
+
| `external_configuration.repository_root` | The URL of the External Tomcat Configuration repository index ([details][repositories]).
52
55
53
56
### Common configurations
54
57
The version of Tomcat can be configured by setting an environment variable.
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`.
71
+
The container can also be configured by overlaying a set of resources on the default distribution. To do this follow one of the options below.
72
+
73
+
#### Buildpack Fork
74
+
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`.
75
+
76
+
#### External Tomcat Configuration
77
+
Supply a repository with an external Tomcat configuration.
The artifacts that the repository provides must be in TAR format and must follow the Tomcat archive structure:
86
+
87
+
```
88
+
tomcat
89
+
|__conf
90
+
|__context.xml
91
+
|__server.xml
92
+
|__web.xml
93
+
|...
94
+
```
95
+
96
+
Notes:
97
+
* It is required the external configuration to allow symlinks. For more information check [Tomcat 7 configuration] or [Tomcat 8 configuration].
98
+
*`JasperListener` is removed in Tomcat 8 so you should not add it to the server.xml.
69
99
70
100
## Session Replication
71
101
By default, the Tomcat instance is configured to store all Sessions and their data in memory. Under certain circumstances 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 by binding an appropriate service.
@@ -98,3 +128,5 @@ Additional supporting functionality can be found in the [`java-buildpack-support
0 commit comments