diff --git a/.docker/php-blackfire/Dockerfile b/.docker/php-blackfire/Dockerfile index e67804e2f75..77ffe71bb55 100644 --- a/.docker/php-blackfire/Dockerfile +++ b/.docker/php-blackfire/Dockerfile @@ -2,7 +2,9 @@ ## Docker image used for profiling Rector ## ################################################ -FROM rector/rector:latest +ARG PHP_VERSION=8.0 + +FROM rector/rector:php${PHP_VERSION} # Install php extensions RUN apt-get update && apt-get install -y \ diff --git a/.docker/php-blackfire/readme.md b/.docker/php-blackfire/readme.md index b174bc8ed64..bdbb91fa1b0 100644 --- a/.docker/php-blackfire/readme.md +++ b/.docker/php-blackfire/readme.md @@ -8,6 +8,8 @@ Builds image with `rector-blackfire` tag. docker build . --tag rector-blackfire --file .docker/php-blackfire/Dockerfile ``` +You can use `--build-arg PHP_VERSION=7.4` to build with specific PHP version. Supported versions are: 7.3, 7.4, 8.0 + ### Prepare diff --git a/.docker/php-xdebug/Dockerfile b/.docker/php-xdebug/Dockerfile index 6b1dedfd784..0743f67154a 100644 --- a/.docker/php-xdebug/Dockerfile +++ b/.docker/php-xdebug/Dockerfile @@ -2,9 +2,9 @@ ## Docker image used for debugging Rector ## ################################################ -ARG RECTOR_IMAGE="rector" +ARG PHP_VERSION=8.0 -FROM rector/${RECTOR_IMAGE}:latest +FROM rector/rector:php${PHP_VERSION} RUN pecl install xdebug diff --git a/.docker/php-xdebug/readme.md b/.docker/php-xdebug/readme.md index 8501811f05f..c1f4e9a5663 100644 --- a/.docker/php-xdebug/readme.md +++ b/.docker/php-xdebug/readme.md @@ -8,6 +8,8 @@ Builds image with `rector-xdebug` tag. docker build . --tag rector-xdebug --file .docker/php-xdebug/Dockerfile ``` +You can use `--build-arg PHP_VERSION=7.4` to build with specific PHP version. Supported versions are: 7.3, 7.4, 8.0 + ### Usage Get into container (change ip address):