Sign inSign up

moufmouf/oracle-xe-php

By moufmouf

Updated about 6 years ago

Oracle XE + PHP (with OCI8 driver) in a single image, for continuous integration tests

Image
0

2.4K

moufmouf/oracle-xe-php repository overview

Oracle XE PHP Docker image

This Docker image is tailored at running PHP integration tests against an Oracle database.

It contains:

  • Oracle XE 11g
  • PHP 7.4 CLI (with OCI8 driver)

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.

Usage

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

Usage in Travis

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

Tag summary

Content type

Image

Digest

Size

765.7 MB

Last updated

about 9 years ago

docker pull moufmouf/oracle-xe-php