Oracle XE + PHP (with OCI8 driver) in a single image, for continuous integration tests
2.4K
This Docker image is tailored at running PHP integration tests against an Oracle database.
It contains:
It is built upon wnameless/oracle-xe-11g for the Oracle installation so you can refer to wnameless/oracle-xe-11g documentation for any Oracle-related settings.
Your PHP application should be mounted in the /app folder.
For instance, if you want to run the vendor/bin/phpunit command in the container, you do:
docker run -v $(pwd):/app moufmouf/oracle-xe-php:7.4-11g vendor/bin/phpunit
Note: the Oracle database will be reset on each run.
If you want to run a SQL initialization script before running your command, you can mount SQL files in the /docker-entrypoint-initdb.d/ directory.
docker run -v $(pwd):/app --mount type=bind,source=$(pwd)/sql/my-startup-script.sql,destination=/docker-entrypoint-initdb.d/my-startup-script.sql,readonly moufmouf/oracle-xe-php vendor/bin/phpunit
You can use this image in Travis, using Docker support.
travis.yml
sudo: required
language: php
services:
- docker
before_script:
- composer install
script:
- docker run -v $(pwd):/app moufmouf/oracle-xe-php vendor/bin/phpunit
Content type
Image
Digest
Size
765.7 MB
Last updated
about 9 years ago
docker pull moufmouf/oracle-xe-php