Bug 1955620: Adding options for development in PHP 7.4, 8, and 8.1 for Docker setup
tl;dr; * Focal added for PHP7.4 * XDebug working in Focal * Jammy added for PHP8.1 --- Added Focal for PHP 7.4. This is the minimum version of PHP needed for Behat tests. To use Focal set DOCKER_PHP_MAJOR_VERSION in the shell you are working in. export DOCKER_PHP_MAJOR_VERSION=7.4 XDebug is now available for Focal on port 9000. For VSCode configure your launch.json file with path mapping set to the path inside the container. i.e. { "version": "0.2.0", "configurations": [ { "name": "Listen for XDebug in Docker", "type": "php", "request": "launch", "port": 9000, "pathMappings": { "/mahara/": "${workspaceFolder}/", }, "log": true } ] } XDebug is also working for scripts running on the CLI inside the container. Added Jammy for PHP 8.1. This is the minimum version of PHP needed for Behat tests. To use Focal set DOCKER_PHP_MAJOR_VERSION in the shell you are working in. export DOCKER_PHP_MAJOR_VERSION=8.1 Change-Id: Ibd79677ce8ad6a9e9837a6f6049ad36e03fa248b
Showing
- Makefile 41 additions, 9 deletionsMakefile
- docker/.env-dist 8 additions, 3 deletionsdocker/.env-dist
- docker/Dockerfile.mahara-base-bionic 4 additions, 3 deletionsdocker/Dockerfile.mahara-base-bionic
- docker/Dockerfile.mahara-base-focal 52 additions, 0 deletionsdocker/Dockerfile.mahara-base-focal
- docker/Dockerfile.mahara-base-impish 34 additions, 0 deletionsdocker/Dockerfile.mahara-base-impish
- docker/Dockerfile.mahara-base-jammy 34 additions, 0 deletionsdocker/Dockerfile.mahara-base-jammy
- docker/Dockerfile.mahara-web-bionic 35 additions, 0 deletionsdocker/Dockerfile.mahara-web-bionic
- docker/Dockerfile.mahara-web-focal 1 addition, 1 deletiondocker/Dockerfile.mahara-web-focal
- docker/Dockerfile.mahara-web-impish 35 additions, 0 deletionsdocker/Dockerfile.mahara-web-impish
- docker/Dockerfile.mahara-web-jammy 35 additions, 0 deletionsdocker/Dockerfile.mahara-web-jammy
- docker/README.md 116 additions, 65 deletionsdocker/README.md
- docker/docker-compose.dev.yaml 5 additions, 0 deletionsdocker/docker-compose.dev.yaml
- docker/docker-compose.yaml 1 addition, 1 deletiondocker/docker-compose.yaml
- docker/web/etc/php/7.4/apache2/conf.d/20-xdebug.ini 13 additions, 0 deletionsdocker/web/etc/php/7.4/apache2/conf.d/20-xdebug.ini
- docker/web/etc/php/7.4/cli/conf.d/20-xdebug.ini 13 additions, 0 deletionsdocker/web/etc/php/7.4/cli/conf.d/20-xdebug.ini
- htdocs/lib/errors.php 1 addition, 2 deletionshtdocs/lib/errors.php
- htdocs/testing/frameworks/behat/classes/BehatHooks.php 2 additions, 2 deletionshtdocs/testing/frameworks/behat/classes/BehatHooks.php
- test/behat/mahara_behat.sh 17 additions, 9 deletionstest/behat/mahara_behat.sh
Loading
Please register or sign in to comment