paketo-buildpacks / apache-tomcat

A Cloud Native Buildpack that contributes Apache Tomcat and Process Types for WARs
Apache License 2.0
17 stars 12 forks source link

Multi-WAR support for two additional use cases #426

Open dmikusa opened 5 months ago

dmikusa commented 5 months ago

Describe the Enhancement

In #402, we merged in multi-war support when building from source. This feature request is to add support for using precompiled assets.

Both of the following cases should work when this feature request is complete:

Motivation

Support multi-wars when building assets outside of buildpacks.

Steps to Test

  1. mkdir single-war
  2. ./mvnw package one of your apps or a Paketo sample app
  3. Move that into the single-war/ directory
  4. pack build -p ./single-war/ and include all the other options for pack build you'd normally use

Pack will use the directory as the application contents, so inside the container buildpacks will see the contents of that folder as /workspace.

  1. mkdir multi-war
  2. ./mvnw package one of your apps or a Paketo sample app
  3. Copy that into the multi-war/ directory twice with different names.
  4. pack build -p ./multi-war/ and include all the other options for pack build you'd normally use

Pack will use the directory as the application contents, so inside the container buildpacks will see the contents of that folder as /workspace.

PG2000 commented 2 months ago

+1

sagaert commented 1 month ago

+1