Documentation
¶
Overview ¶
Package composer holds settings shared by every code path that runs composer inside a lerd FPM container — the `lerd composer` CLI and the MCP composer tools alike — so they stay consistent.
Index ¶
Constants ¶
const DefaultProcessTimeout = "1800"
DefaultProcessTimeout raises composer's per-process timeout from its 300s default to 30 minutes. Composer kills any script that outruns this, and the post-autoload-dump `package:discover` boots the whole application, which on a container filesystem (cold opcache, bind-mounted vendor/) can legitimately run well past 300s — long enough that an otherwise-successful `composer require` dies mid-script. See geodro/lerd#449.
Variables ¶
This section is empty.
Functions ¶
func PharPath ¶
func PharPath() string
PharPath returns lerd's own composer, the phar under lerd's bin dir that every lerd code path runs with the container's PHP. The FPM image carries a composer of its own, but it is frozen at image build time and an existing tag is never rebuilt, where a bumped pin reaches the phar through the tools manifest within a day, so the phar is the one lerd runs and the image's copy is there for a shell opened inside the container.
func ProcessTimeoutEnv ¶
func ProcessTimeoutEnv() string
ProcessTimeoutEnv returns the COMPOSER_PROCESS_TIMEOUT `KEY=VALUE` entry to inject into the container exec. A non-empty host value always wins, so users keep full control (including `0` to disable the timeout entirely); otherwise lerd applies its higher default in place of composer's stock 300s.
Types ¶
This section is empty.