Package template library
This page is the stable index of packaging templates published by Code as Usual. Installation administrators can browse the same catalog directly from Server package library → Create package → Load from our repository.
Download the machine-readable template catalog. Download the catalog format 2 JSON Schema.
Compatibility and versions
Two versions have different purposes:
- Template version identifies a revision of the product knowledge and help text. Updating a template does not change Code as Usual itself.
- Template format version identifies the JSON contract understood by the application. An application accepts only format versions it implements. A catalog entry with a newer format is shown as unsupported and cannot be selected. Local file import applies the same check.
The current application supports template format versions 1, 2 and 3. Format 2 adds a package-authored usage guide. Format 3 adds a generic checksum-pinned single-file installation method, used when an upstream vendor publishes an executable instead of an archive or Ubuntu package. When the contract gains incompatible fields or behavior, both the schema and the format version must change. A new template revision that still uses the same contract does not require an application release.
This catalog contains reusable guides for the installation administrator’s Server package library. It is separate from the maintained version catalog used by ordinary environment packages.
Published templates
Apache Tomcat archive
- Template version: 2.0.0
- Template format: 2
- Supplies:
java.servlet-container - Requires:
java >=17
Download the Apache Tomcat template.
The administrator supplies the Tomcat release, direct archive URL and the
vendor-published SHA-512 checksum. The template owns Tomcat’s archive layout,
published command path, environment contract, Java capability requirement and
the safe writable-CATALINA_BASE workflow used by people and AI agents.
In the resulting environment, CATALINA_HOME is the immutable package
installation. Create a separate writable base below the project directory
before deploying a WAR:
export CATALINA_BASE="$PWD/.runtime/tomcat"
mkdir -p "$CATALINA_BASE"
if [ ! -f "$CATALINA_BASE/conf/server.xml" ]; then
cp -a "$CATALINA_HOME/conf" "$CATALINA_BASE/conf"
fi
mkdir -p "$CATALINA_BASE"/{bin,lib,logs,temp,webapps,work}
Copy the application WAR to $CATALINA_BASE/webapps. catalina run runs in
the foreground for direct diagnostics; catalina start and catalina stop
manage a background process. Tomcat listens on port 8080 by default, so create
an environment preview for port 8080 unless the project changes server.xml.
The installed guide remains authoritative for the exact selected package:
cau-env guide apache.tomcat
Publishing another template
Add the versioned JSON template to the documentation repository and add one
entry to downloads/templates/catalog.json. Keep the catalog address and
format stable. Validate the file with the current template schema before
publishing it:
Download the template format 3 JSON Schema.
Do not replace a version entry with new content. Add a new exact version, keep
older supported entries, update recommended, and publish the template SHA-256.
The release-matched documentation remains the offline fallback.