Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 2.05 KB

container-tomcat.md

File metadata and controls

37 lines (30 loc) · 2.05 KB

Tomcat Container

The Tomcat Container allows servlet 2 and 3 web applications to be run. These applications are run as the root web application in a Tomcat container.

Detection CriterionExistence of a WEB-INF/ folder in the application directory and Java Main not detected
Tags tomcat=⟨version⟩, tomcat-buildpack-support=⟨version⟩
Tags are printed to standard output by the buildpack detect script

In order to specify Spring profiles, set the SPRING_PROFILES_ACTIVE environment variable. This is automatically detected and used by Spring.

Configuration

For general information on configuring the buildpack, refer to Configuration and Extension.

The container can be configured by modifying the config/tomcat.yml file. The container uses the Repository utility support and so it supports the version syntax defined there.

Name Description
repository_root The URL of the Tomcat repository index (details).
version The version of Tomcat to use. Candidate versions can be found in this listing.

Supporting Functionality

Additional supporting functionality can be found in the java-buildpack-support Git repository.