Skip to content

Commit 37d9031

Browse files
author
Vincent Faliès
committed
Add OCI8 support
1 parent e0fee9b commit 37d9031

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

Dockerfile

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ RUN apt-get update && apt-get install -y \
4141
unzip \
4242
librabbitmq-dev \
4343
inetutils-ping \
44+
libaio1 \
4445
&& docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
4546
&& docker-php-ext-install -j$(nproc) imap \
4647
&& docker-php-ext-configure intl \
@@ -91,8 +92,6 @@ RUN chmod +x /tmp/composer.sh \
9192
&& /tmp/composer.sh \
9293
&& mv composer.phar /usr/local/bin/composer
9394

94-
WORKDIR /var/www/html
95-
9695
# User creation
9796
RUN useradd -U -m -r -o -u 1003 vfac
9897

@@ -106,6 +105,23 @@ RUN USER=vfac && \
106105
printf "user: $USER\ngroup: $GROUP\n" > /etc/fixuid/config.yml
107106
ENTRYPOINT ["fixuid", "-q"]
108107

108+
# OCI installation
109+
RUN mkdir -p /opt/oracle
110+
WORKDIR /opt/oracle
111+
112+
RUN wget https://download.oracle.com/otn_software/linux/instantclient/193000/instantclient-basic-linux.x64-19.3.0.0.0dbru.zip \
113+
&& wget https://download.oracle.com/otn_software/linux/instantclient/193000/instantclient-sdk-linux.x64-19.3.0.0.0dbru.zip \
114+
&& unzip instantclient-basic-linux.x64-19.3.0.0.0dbru.zip \
115+
&& unzip instantclient-sdk-linux.x64-19.3.0.0.0dbru.zip \
116+
&& rm instantclient-basic-linux.x64-19.3.0.0.0dbru.zip \
117+
&& rm instantclient-sdk-linux.x64-19.3.0.0.0dbru.zip \
118+
&& echo /opt/oracle/instantclient_19_3 > /etc/ld.so.conf.d/oracle-instantclient.conf \
119+
&& ldconfig \
120+
&& echo "instantclient,/opt/oracle/instantclient_19_3" | pecl install oci8 \
121+
&& echo "extension=oci8.so" >> /usr/local/etc/php/conf.d/oci8.ini
122+
123+
WORKDIR /var/www/html
124+
109125
CMD ["/usr/local/sbin/php-fpm"]
110126
USER vfac:vfac
111127

0 commit comments

Comments
 (0)