This image allows you to run and debug your PHP code and the ability to run sonar scanner on your project thanks to Docker.
docker pull ccin2p3/php7.1-xdebug-sonar
docker build -t ccin2p3/php7.1-xdebug-sonar github.com/ccin2p3/dockerfile-php7.1-xdebug-sonar
docker run -it ccin2p3/php7.1-xdebug-sonar bash
FROM ccin2p3/php7.1-xdebug-sonar
app:
image: ccin2p3/php7.1-xdebug-sonar
ports:
- 9000:9000
expose:
- 9000
environment:
PHP_XDEBUG_ENABLED: 1
tty: true
stdin_open: true