#Cubes: composer, git, ffmpeg, imagemagick
Four command-line tools the installer builds. None of them has a daemon, so the cubes do the two things that matter: publish the binary with the right library path, and answer "which version is installed".
#Files
<aegis.config_dir>/composer/└── composer launcher written by `cubes composer configure`<aegis.bin_dir>/├── composer -> launcher (PHP + phar)├── git├── ffmpeg, ffprobe└── magick, convert, identify#Commands
aegis cubes composer configure # write the launcher, then run itaegis cubes composer validate # composer --version through the launcheraegis cubes composer exposeaegis cubes git validateaegis cubes git exposeaegis cubes ffmpeg validateaegis cubes ffmpeg exposeaegis cubes imagemagick validateaegis cubes imagemagick exposereload exists on all four and answers no daemon, so scripts can treat every cube the same way.
#Why a launcher for composer
Composer is a PHP archive with #!/usr/bin/env php; a plain exec would need a php binary on PATH and the PHP library path. The cube writes a two-line launcher instead and publishes that:
#!/bin/shexec "/aegis/apps/web/php/8.5/bin/php" "/aegis/apps/tools/composer/2.11/bin/composer" "$@"/aegis/bin/composer therefore always uses the PHP the platform installed, not whatever is first on PATH. The wrapper around it exports LD_LIBRARY_PATH, so the PHP binary finds its own libraries.
Composer warns when it runs as root (plugins have been disabled for safety); set COMPOSER_ALLOW_SUPERUSER=1 in the environment if a root plugin is wanted.
#Why LD_LIBRARY_PATH matters
git links libcurl, openssl and zlib from the platform tree; ffmpeg and ImageMagick link a dozen more. Their binaries carry a RUNPATH, but glibc applies it only to direct dependencies, so indirect libraries are found through the wrapper's LD_LIBRARY_PATH. That is the same rule as php, nginx and the database clients — see php.md.
#expose
aegis cubes composer exposecube composerinstalled /aegis/apps/tools/composer/2.11launcher /aegis/config/composer/composerphar /aegis/apps/tools/composer/2.11/bin/composerphp /aegis/apps/web/php/8.5/bin/phppublished /aegis/bin/composerinstalled, configuration and state are rendered by every cube; git, ffmpeg and imagemagick show no daemon in aegis cubes list.
#Binary names
| Cube | Published commands |
|---|---|
composer | composer |
git | git |
ffmpeg | ffmpeg, ffprobe |
imagemagick | magick, convert, identify |
ImageMagick 7 installs magick; convert and identify are still published for scripts that expect the 6.x names.