Public | Automated Build

Last pushed: 17 days ago
Short Description
Latest PHP 7 CLI + Oracle oci8
Full Description

Latest PHP CLI image with Apache and Oracle oci8 (instantclient 12.2.0.1.0)

Image built from official PHP images. Ads oci8 drivers to connect to Oracle database.

Any problem and sugestions can be sent to adrian.harabula@gmail.com.

Usage instructions with Laravel

Create a new image

FROM adrianharabula/php7cli-with-oci8
RUN mkdir /root/app
WORKDIR /root/app
EXPOSE 8000
CMD [ "php", "artisan", "serve", "--host=0.0.0.0" ]

Build it with

docker build -t my-laravel-app .

Run your laravel installation with:

docker run -p8000:8000 -v laravel/app/folder/:/root/app my-laravel-app

Dockercompose with Oracle database here:

version: '3'

services:
   oracledb:
     image: wnameless/oracle-xe-11g
     restart: always
     ports:
      - "1521:1521"

   devapp:
     depends_on:
       - oracledb
     build:
       context: ./Dockerfiles/php7cli/
       dockerfile: Dockerfile
     image: condr/php7cli
     links:
      - oracledb
     volumes:
      - ./app:/root/app
     ports:
      - "8000:8000"

volumes:
    www:
Docker Pull Command
Owner
adrianharabula