generated from yiisoft/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
72 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
FROM php:8.3-cli | ||
|
||
# System packages | ||
|
||
RUN apt-get update && apt-get install -y unzip libaio1 | ||
|
||
# Oracle Instant Client Downloads for Linux x86-64 (64-bit) | ||
|
||
RUN cd /tmp && curl -L https://download.oracle.com/otn_software/linux/instantclient/2350000/instantclient-basic-linux.x64-23.5.0.24.07.zip -O | ||
RUN cd /tmp && curl -L https://download.oracle.com/otn_software/linux/instantclient/2350000/instantclient-sdk-linux.x64-23.5.0.24.07.zip -O | ||
RUN cd /tmp && curl -L https://download.oracle.com/otn_software/linux/instantclient/2350000/instantclient-sqlplus-linux.x64-23.5.0.24.07.zip -O | ||
|
||
RUN unzip /tmp/instantclient-basic-linux.x64-23.5.0.24.07.zip -d /usr/local/ | ||
RUN unzip -o /tmp/instantclient-sdk-linux.x64-23.5.0.24.07.zip -d /usr/local/ | ||
RUN unzip -o /tmp/instantclient-sqlplus-linux.x64-23.5.0.24.07.zip -d /usr/local/ | ||
|
||
RUN ln -s /usr/local/instantclient_23_5 /usr/local/instantclient | ||
# Fixes error "libnnz19.so: cannot open shared object file: No such file or directory" | ||
RUN ln -s /usr/local/instantclient/lib* /usr/lib | ||
RUN ln -s /usr/local/instantclient/sqlplus /usr/bin/sqlplus | ||
|
||
RUN echo 'export LD_LIBRARY_PATH="/usr/local/instantclient"' >> /root/.bashrc | ||
RUN echo 'umask 002' >> /root/.bashrc | ||
|
||
# PHP extensions | ||
|
||
RUN echo 'instantclient,/usr/local/instantclient' | pecl install oci8 | ||
RUN echo "extension=oci8.so" > /usr/local/etc/php/conf.d/php-oci8.ini | ||
|
||
RUN echo 'instantclient,/usr/local/instantclient' | pecl install pdo_oci | ||
RUN echo "extension=pdo_oci.so" > /usr/local/etc/php/conf.d/php-pdo-oci.ini | ||
|
||
# PHP logs | ||
|
||
RUN printf "log_errors = On \nerror_log = /dev/stderr\n" > /usr/local/etc/php/conf.d/php-logs.ini | ||
|
||
# Composer | ||
|
||
COPY --from=composer:2.8.1 /usr/bin/composer /usr/local/bin/composer | ||
|
||
# Code | ||
|
||
COPY . /code | ||
WORKDIR /code | ||
|
||
# PHP packages | ||
|
||
RUN composer install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
services: | ||
php: | ||
build: . | ||
volumes: | ||
- ./src:/code/src | ||
- ./tests:/code/tests | ||
- ./phpunit.xml.dist:/code/phpunit.xml.dist | ||
command: tail -F anything | ||
|
||
oracle: | ||
image: gvenzl/oracle-xe:21 | ||
ports: | ||
- 1521:1521 | ||
expose: | ||
- 1521 | ||
environment: | ||
ORACLE_PASSWORD : root | ||
ORACLE_DATABASE : yiitest | ||
APP_USER: yiitest | ||
APP_USER_PASSWORD: root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.