The IDE's Symfony Console listed nothing on a stopped site: it ran bin/console in a throwaway jumphp/web:dev
container (PHP 8.4) while the dependencies had been installed by PHP 8.5 (symfony-docker's image), so Composer's
platform check refused ("require a PHP version >= 8.5.12. You are running 8.4.27").
- tools/web.sh: one image per PHP version, jumphp/web:php<x.y> (docker/web-dev, build arg PHP_VERSION; 8.2-8.5,
the FrankenPHP tags). The site's PHP: .jumphp/web.json "php", else symfony-docker's Dockerfile, else what Composer
needs (config.platform.php, else the newest version composer.json, composer.lock's platform and every locked
package allow: tools/web-php.php, cached in .jumphp/php.auto), else 8.4. serve / up / composer / console all use it.
- bin/jumphp web:php <folder> [8.x|auto]: shown or chosen, applied to the setup (JumPHP stack: its image, a
running site restarted; symfony-docker: its Dockerfile FROM; an own compose stack: its PHP service's image tag).
- bin/jumphp web:docker <folder> [jumphp|dunglas|compose [service] [file]]: the Docker setup switched (what it
changes is said); "compose": the site's own compose file, console / composer in the chosen service.
web:status: JSON for the IDE. web:new --php=8.x (remembers the PHP it made the site with). web:console runs
artisan for Laravel. symfony-docker's console runs in a throwaway service container when it is stopped.
- A compose.override.yaml written by Symfony Flex recipes is no longer merged into the JumPHP stack while Compose
refuses it (testSF: "service database has neither an image nor a build context").
- IDE: the Console runs through the toolkit's web:console (the project's PHP), or Local PHP (the computer's php,
PATH or a chosen program, its version shown; Composer follows), remembered in .jumphp/web.json; a PHP selector
and the setup in its header; the platform check read: "Use PHP 8.5 for this project" in one click. Docker
window > Compose: the site's PHP and Docker setup (JumPHP stack / symfony-docker / own compose service).
The toolkit is pulled at once when it lacks web:php. Texts in the 14 languages.
- Tests: WebPhpTest (constraints, resolution, web.json, setups, commands), SymfonyConsoleTest (runners, platform
error), tools/tests/web.test.sh (web.sh functions, stubbed resolver).
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01JkYTqsvYu6AYr9yQ3Q4Nt6
16 lines
1.1 KiB
Docker
16 lines
1.1 KiB
Docker
# The web projects of the JumPHP IDE (bin/jumphp web:serve, tools/web.sh): FrankenPHP with the PHP extensions Symfony,
|
|
# WordPress, PrestaShop, Sylius and Laravel need, Composer, and a Caddyfile serving $DOC_ROOT on :8080 (run as the user).
|
|
# One image per PHP version: jumphp/web:php<PHP_VERSION> (the project's version, .jumphp/web.json "php" or what Composer needs).
|
|
ARG PHP_VERSION=8.4
|
|
FROM dunglas/frankenphp:1-php${PHP_VERSION}
|
|
ARG PHP_VERSION
|
|
RUN install-php-extensions pdo_mysql mysqli pdo_pgsql pgsql pdo_sqlite xdebug gd intl zip opcache exif bcmath soap sodium apcu \
|
|
&& mkdir -p /etc/jumphp
|
|
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
|
|
COPY Caddyfile /etc/jumphp/Caddyfile
|
|
COPY php.ini /usr/local/etc/php/conf.d/zz-jumphp-web.ini
|
|
# Xdebug is there but off: web:serve with JUMPHP_XDEBUG (the IDE's Debug) turns it on (XDEBUG_MODE=debug)
|
|
ENV XDG_CONFIG_HOME=/tmp/caddy-config XDG_DATA_HOME=/tmp/caddy-data DOC_ROOT=/app/public XDEBUG_MODE=off
|
|
LABEL jumphp.web.rev="4" jumphp.web.php="${PHP_VERSION}"
|
|
WORKDIR /app
|
|
CMD ["frankenphp", "run", "--config", "/etc/jumphp/Caddyfile"]
|