Skip to content

Commit

Permalink
Fixed oci8 layer (#315)
Browse files Browse the repository at this point in the history
* Force rebuild oci8 layer

* Fixed PHP8.0 and allowed PHP 8.1

* Bugfix

* Syntax

* Drop PHP 8.1
  • Loading branch information
Nyholm authored Feb 1, 2022
1 parent d247100 commit 409bc31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions layers/oci8/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
ARG PHP_VERSION
FROM bref/build-php-$PHP_VERSION:1.3.3 AS ext
ARG PHP_VERSION

# Fix library path
# Specify library path
ENV LD_LIBRARY_PATH=/usr/lib:/usr/lib64:$LD_LIBRARY_PATH
ENV ORACLE_BUILD_DIR=${BUILD_DIR}/oracle

Expand All @@ -15,7 +16,7 @@ RUN mkdir -p ${ORACLE_BUILD_DIR}; \
curl -o oci-sdk.zip https://download.oracle.com/otn_software/linux/instantclient/213000/instantclient-sdk-linux.x64-21.3.0.0.0.zip && \
unzip oci-sdk.zip -d src

RUN echo "instantclient,${ORACLE_BUILD_DIR}/src/instantclient_21_3" | pecl install oci8
RUN echo "instantclient,${ORACLE_BUILD_DIR}/src/instantclient_21_3" | pecl install oci8-3.0.1;

RUN cp /usr/lib64/libaio.so.1 /tmp/libaio.so.1
RUN cp ${ORACLE_BUILD_DIR}/src/instantclient_21_3/libclntshcore.so.21.1 /tmp/libclntshcore.so.21.1
Expand Down

0 comments on commit 409bc31

Please sign in to comment.