diff --git a/README.md b/README.md index 18d784f..9f9873a 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,14 @@ All [tags in the `prestashop/prestashop` repository](https://api.github.com/repo - 8.1 - 8.2 +### Testing + +To build the image, pass the following environment variables when building: + +```shell +PS_VERSION=8.1.0 PHP_VERSION=8.2 docker compose build prestashop +``` + ## shopware [View on GitHub Container Registry 📦](https://ghcr.io/myparcelnl/shopware) @@ -57,6 +65,14 @@ Shopware images based on `php-xd`. - 8.2 - 8.1 +### Testing + +To build the image, pass the following environment variables when building: + +```shell +SW_VERSION=6.5 PHP_VERSION=7.4 docker compose build shopware +``` + ## wordpress [View on GitHub Container Registry 📦](https://ghcr.io/myparcelnl/wordpress) @@ -73,3 +89,11 @@ All versions returned by [the WordPress API](https://api.wordpress.org/core/vers - 7.4 - 8.2 + +### Testing + +To build the image, pass the following environment variables when building: + +```shell +WP_VERSION=6.5.3 PHP_VERSION=7.4 docker compose build wordpress +``` diff --git a/docker-compose.yml b/docker-compose.yml index 58c1bef..1a12fda 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,20 +1,27 @@ services: - ### - # Main php container - # - # This container runs the php-fpm process and serves WordPress. - # - # Requires the db container to be running. - # - # Contains: - # - php-fpm, xdebug, composer - # - WordPress installation (in volume web-data) - # - Various tools: zsh, vim - # - # See https://github.com/myparcelnl/docker-images/pkgs/container/wordpress - ## wordpress: - image: ghcr.io/myparcelnl/wordpress:6.3-php7.4 + image: ghcr.io/myparcelnl/wordpress:${WP_VERSION}-php${PHP_VERSION} build: context: images/wordpress dockerfile: Dockerfile + args: + PHP_VERSION: ${PHP_VERSION} + WP_VERSION: ${WP_VERSION} + + prestashop: + image: ghcr.io/myparcelnl/prestashop:${PS_VERSION}-php${PHP_VERSION} + build: + context: images/prestashop + dockerfile: Dockerfile + args: + PHP_VERSION: ${PHP_VERSION} + PS_VERSION: ${PS_VERSION} + + shopware: + image: ghcr.io/myparcelnl/shopware:${SW_VERSION}-php${PHP_VERSION} + build: + context: images/shopware + dockerfile: Dockerfile + args: + PHP_VERSION: ${PHP_VERSION} + SW_VERSION: ${SW_VERSION} diff --git a/images/prestashop/Dockerfile b/images/prestashop/Dockerfile index 7139efe..1ad485b 100644 --- a/images/prestashop/Dockerfile +++ b/images/prestashop/Dockerfile @@ -175,7 +175,8 @@ RUN version="$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;")" && \ tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire && \ mv /tmp/blackfire/blackfire-*.so "$(php -r "echo ini_get ('extension_dir');")/blackfire.so" && \ printf "blackfire.agent_socket=tcp://blackfire:8307\n" > "$PHP_INI_DIR/conf.d/blackfire.ini" && \ - rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz + rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz && \ + blackfire php:install ENV XDEBUG_MODE=debug diff --git a/images/shopware/Dockerfile b/images/shopware/Dockerfile index 3fdb6a6..9da42c4 100644 --- a/images/shopware/Dockerfile +++ b/images/shopware/Dockerfile @@ -96,7 +96,8 @@ RUN version="$(php -r "echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;")" \ curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s "https://blackfire.io/api/v1/releases/probe/php/linux/$architecture/$version" && \ tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire && \ mv /tmp/blackfire/blackfire-*.so "$(php -r "echo ini_get ('extension_dir');")/blackfire.so" && \ - rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz + rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz && \ + blackfire php:install # add utilities RUN apk add --no-cache \ diff --git a/images/wordpress/Dockerfile b/images/wordpress/Dockerfile index 967d766..674b5e3 100644 --- a/images/wordpress/Dockerfile +++ b/images/wordpress/Dockerfile @@ -159,7 +159,8 @@ RUN apk add --no-cache \ tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire && \ mv /tmp/blackfire/blackfire-*.so "$(php -r "echo ini_get ('extension_dir');")/blackfire.so" && \ printf "blackfire.agent_socket=tcp://blackfire:8307\n" > "$PHP_INI_DIR/conf.d/blackfire.ini" && \ - rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz + rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz && \ + blackfire php:install ENV XDEBUG_MODE=debug