mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-17 21:38:22 +01:00
[Docker] Support multiple PHP versions for xdebug + blackfire images (#5760)
This commit is contained in:
parent
c1dab30664
commit
124a13dde8
@ -2,7 +2,9 @@
|
|||||||
## Docker image used for profiling Rector ##
|
## Docker image used for profiling Rector ##
|
||||||
################################################
|
################################################
|
||||||
|
|
||||||
FROM rector/rector:latest
|
ARG PHP_VERSION=8.0
|
||||||
|
|
||||||
|
FROM rector/rector:php${PHP_VERSION}
|
||||||
|
|
||||||
# Install php extensions
|
# Install php extensions
|
||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
|
@ -8,6 +8,8 @@ Builds image with `rector-blackfire` tag.
|
|||||||
docker build . --tag rector-blackfire --file .docker/php-blackfire/Dockerfile
|
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
|
### Prepare
|
||||||
|
|
||||||
|
@ -2,9 +2,9 @@
|
|||||||
## Docker image used for debugging Rector ##
|
## 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
|
RUN pecl install xdebug
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@ Builds image with `rector-xdebug` tag.
|
|||||||
docker build . --tag rector-xdebug --file .docker/php-xdebug/Dockerfile
|
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
|
### Usage
|
||||||
|
|
||||||
Get into container (change ip address):
|
Get into container (change ip address):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user