Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
dbpolito committed Jul 9, 2024
1 parent 8c281dc commit b9acad9
Show file tree
Hide file tree
Showing 19 changed files with 383 additions and 47 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,22 @@ jobs:

- name: Build
run: |
docker build --pull -t kooldev/php:${{ matrix.version }}-nginx-oci8 ${{ matrix.version }}-nginx-oci8
docker build --pull -t kooldev/php:${{ matrix.version }}-nginx-oci8-prod ${{ matrix.version }}-nginx-oci8-prod
docker build --pull -t kooldev/php:${{ matrix.version }}-oci8-nginx ${{ matrix.version }}-oci8-nginx
docker build --pull -t kooldev/php:${{ matrix.version }}-oci8-nginx-prod ${{ matrix.version }}-oci8-nginx-prod
docker build --pull -t kooldev/php:${{ matrix.version }}-swoole-nginx-oci8 ${{ matrix.version }}-swoole-nginx-oci8
docker build --pull -t kooldev/php:${{ matrix.version }}-swoole-nginx-oci8-prod ${{ matrix.version }}-swoole-nginx-oci8-prod
docker build --pull -t kooldev/php:${{ matrix.version }}-oci8-swoole-nginx ${{ matrix.version }}-oci8-swoole-nginx
docker build --pull -t kooldev/php:${{ matrix.version }}-oci8-swoole-nginx-prod ${{ matrix.version }}-oci8-swoole-nginx-prod
- name: Tests
run: |
docker run kooldev/php:${{ matrix.version }}-nginx-oci8 php -r "extension_loaded('oci8') or die(1);"
docker run kooldev/php:${{ matrix.version }}-nginx-oci8-prod php -r "extension_loaded('oci8') or die(1);"
docker run kooldev/php:${{ matrix.version }}-oci8-nginx php -r "extension_loaded('oci8') or die(1);"
docker run kooldev/php:${{ matrix.version }}-oci8-nginx-prod php -r "extension_loaded('oci8') or die(1);"
docker run kooldev/php:${{ matrix.version }}-nginx-oci8 php -r "extension_loaded('oci8') or die(1);"
docker run kooldev/php:${{ matrix.version }}-nginx-oci8-prod php -r "extension_loaded('oci8') or die(1);"
docker run kooldev/php:${{ matrix.version }}-oci8-nginx php -r "extension_loaded('oci8') or die(1);"
docker run kooldev/php:${{ matrix.version }}-oci8-nginx-prod php -r "extension_loaded('oci8') or die(1);"
docker run kooldev/php:${{ matrix.version }}-swoole-nginx-oci8 php -r "extension_loaded('oci8') or die(1);"
docker run kooldev/php:${{ matrix.version }}-swoole-nginx-oci8-prod php -r "extension_loaded('oci8') or die(1);"
docker run kooldev/php:${{ matrix.version }}-oci8-swoole-nginx php -r "extension_loaded('oci8') or die(1);"
docker run kooldev/php:${{ matrix.version }}-oci8-swoole-nginx-prod php -r "extension_loaded('oci8') or die(1);"
- name: Login to DockerHub
uses: docker/[email protected]
Expand All @@ -46,8 +46,8 @@ jobs:
- name: Push to DockerHub
if: github.ref == 'refs/heads/main' && github.repository == 'kool-dev/docker-php-oci8'
run: |
docker push kooldev/php:${{ matrix.version }}-nginx-oci8
docker push kooldev/php:${{ matrix.version }}-nginx-oci8-prod
docker push kooldev/php:${{ matrix.version }}-oci8-nginx
docker push kooldev/php:${{ matrix.version }}-oci8-nginx-prod
docker push kooldev/php:${{ matrix.version }}-swoole-nginx-oci8
docker push kooldev/php:${{ matrix.version }}-swoole-nginx-oci8-prod
docker push kooldev/php:${{ matrix.version }}-oci8-swoole-nginx
docker push kooldev/php:${{ matrix.version }}-oci8-swoole-nginx-prod
21 changes: 21 additions & 0 deletions 8.0-oci8-nginx-prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.0-nginx-prod

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
21 changes: 21 additions & 0 deletions 8.0-oci8-nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.0-nginx

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
21 changes: 21 additions & 0 deletions 8.0-oci8-swoole-nginx-prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.0-swoole-nginx-prod

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
21 changes: 21 additions & 0 deletions 8.0-oci8-swoole-nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.0-swoole-nginx

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
21 changes: 21 additions & 0 deletions 8.1-oci8-nginx-prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.1-nginx-prod

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
21 changes: 21 additions & 0 deletions 8.1-oci8-nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.1-nginx

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
21 changes: 21 additions & 0 deletions 8.1-oci8-swoole-nginx-prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.1-swoole-nginx-prod

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
21 changes: 21 additions & 0 deletions 8.1-oci8-swoole-nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.1-swoole-nginx

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
21 changes: 21 additions & 0 deletions 8.2-oci8-nginx-prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.2-nginx-prod

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
21 changes: 21 additions & 0 deletions 8.2-oci8-nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.2-nginx

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
21 changes: 21 additions & 0 deletions 8.2-oci8-swoole-nginx-prod/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.2-swoole-nginx-prod

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
21 changes: 21 additions & 0 deletions 8.2-oci8-swoole-nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM kooldev/php:8.2-swoole-nginx

ENV LD_LIBRARY_PATH /usr/local/instantclient
ENV ORACLE_HOME /usr/local/instantclient

# Download and unarchive Instant Client v11
RUN apk add --update libaio libnsl && \
curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
ln -s ${ORACLE_HOME}/lib* /usr/lib && \
ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
ln -s /usr/lib/libnsl.so.3 /usr/lib/libnsl.so.1 && \
docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
docker-php-ext-install oci8
Loading

0 comments on commit b9acad9

Please sign in to comment.