Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Oci8 #17

Closed
halloigi opened this issue Jun 28, 2022 · 2 comments
Closed

Enable Oci8 #17

halloigi opened this issue Jun 28, 2022 · 2 comments

Comments

@halloigi
Copy link

how enable oci8 in dockerfile?i've tried with instantclient, but no luck

RUN apt-get -y install libaio1 libc6-dev
COPY basic.zip /tmp/
COPY sdk.zip /tmp/
RUN unzip /tmp/basic.zip -d /usr/local/
RUN unzip /tmp/sdk.zip -d /usr/local/
RUN mv /usr/local/instantclient_21_6 /usr/local/instantclient

RUN sh -c "echo /usr/local/instantclient > /etc/ld.so.conf.d/oracle-instantclient.conf"
RUN ldconfig

RUN export LD_LIBRARY_PATH=/usr/local/instantclient:$LD_LIBRARY_PATH
RUN export PATH=/usr/local/instantclient:$PATH

RUN docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/usr/local/instantclient

RUN pecl channel-update pecl.php.net

RUN pecl install pecl install oci8 && memcache-8.0
&& pecl install mongodb-1.12.0

RUN docker-php-ext-enable
memcache
mongodb

RUN docker-php-ext-enable pdo_oci oci8

thanks

@chriskapp
Copy link
Member

Hi, you can checkout this PR s. #16 where a user has enabled oci8 for the container

@chriskapp
Copy link
Member

Hey, we have just added also an oracle flavor to our base image which can be used if you need oracle support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants