Sign inSign up

caperneoignis/moodle-php-apache

By caperneoignis

•Updated almost 5 years ago

This is a php-apache docker image, that can be used in Gitlab ci/cd docker executor

Image
2

10K+

caperneoignis/moodle-php-apache repository overview

⁠moodle-php-apache: A Moodle PHP Environment

A Moodle PHP environment configured for Moodle development based on Official PHP Images⁠.

⁠Versions
PHP VersionVariantTagsStatusNotes
PHP 8.0Bullseye8.0, 8.0-bullseyeTest and publish 8.0
PHP 7.4Bullseye7.4, 7.4-bullseyeTest and publish 7.4
PHP 8.0Buster8.0-busterTest and publish 8.0
PHP 7.4Buster7.4-busterTest and publish 7.4
PHP 7.3Buster7.3, 7.3-busterTest and publish 7.3
PHP 7.2Buster7.2, 7.2-busterBuild StatusPHP 7.2 EOL
PHP 7.1Buster7.1, 7.1-busterBuild StatusPHP 7.1 EOL
PHP 7.3Stretch7.3-stretchBuild StatusStretch EOL
PHP 7.2Stretch7.2-stretchBuild StatusStretch and PHP 7.2 EOL
PHP 7.1Stretch7.1-stretchBuild StatusStretch and PHP 7.1 EOL
PHP 7.0Stretch7.0, 7.0-stretchBuild StatusStretch and PHP 7.0 EOL
PHP 5.6Stretch5.6, 5.6-stretchBuild StatusStretch and PHP 5.6 EOL
PHP 7.1Jessie7.1-jessieBuild StatusJessie and PHP 7.1 EOL
PHP 7.0Jessie7.0-jessieBuild StatusJessie and PHP 7.0 EOL
PHP 5.6Jessie5.6-jessieBuild StatusJessie and PHP 5.6 EOL

⁠Example usage

The following command will expose the current working directory on port 8080:

$ docker run --name web0 -e APACHE_WEB_ROOT=$BUILD_DIRECTORY -p 8080:80  -v $PWD:/var/www/html moodlehq/moodle-php-apache:7.1

⁠Features

  • Preconfigured with all php extensions required for Moodle development and all database drivers
  • Serves wwroot configured at /var/www/html/
  • For PHP 7.3 and up, both linux/amd64 and linux/arm64 images are being built. Note that linux/arm64 doesn't support the sqlsrv and oci extensions yet. Other than that, both architectures work exactly the same.
  • Verified by automated tests⁠.
  • Autobuilt from GHA, on push.

⁠Directories

To faciliate testing and easy setup the following directories are created and owned by www-data by default:

  • /var/www/moodledata
  • /var/www/phpunitdata
  • /var/www/behatdata
  • /var/www/behatfaildumps

⁠Upcoming

Currently trying to implement php 7.2

⁠See also

This container is part of a set of containers for Moodle development, see also:

Tag summary

Content type

Image

Digest

Size

251.4 MB

Last updated

almost 5 years ago

docker pull caperneoignis/moodle-php-apache