File tree Expand file tree Collapse file tree 5 files changed +95
-0
lines changed
Expand file tree Collapse file tree 5 files changed +95
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM kooldev/php:8.1-nginx
2+
3+ ENV LD_LIBRARY_PATH /usr/local/instantclient
4+ ENV ORACLE_HOME /usr/local/instantclient
5+
6+ # Download and unarchive Instant Client v11
7+ RUN apk add --update libaio libnsl && \
8+ curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
9+ curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
10+ curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
11+ unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
12+ unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
13+ unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
14+ ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
15+ ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
16+ ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
17+ ln -s ${ORACLE_HOME}/lib* /usr/lib && \
18+ ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
19+ ln -s /usr/lib/libnsl.so.2 /usr/lib/libnsl.so.1 && \
20+ docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
21+ docker-php-ext-install oci8
Original file line number Diff line number Diff line change 1+ FROM kooldev/php:8.1-nginx
2+
3+ ENV LD_LIBRARY_PATH /usr/local/instantclient
4+ ENV ORACLE_HOME /usr/local/instantclient
5+
6+ # Download and unarchive Instant Client v11
7+ RUN apk add --update libaio libnsl && \
8+ curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
9+ curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
10+ curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
11+ unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
12+ unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
13+ unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
14+ ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
15+ ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
16+ ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
17+ ln -s ${ORACLE_HOME}/lib* /usr/lib && \
18+ ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
19+ ln -s /usr/lib/libnsl.so.2 /usr/lib/libnsl.so.1 && \
20+ docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
21+ docker-php-ext-install oci8
Original file line number Diff line number Diff line change 1+ FROM kooldev/php:8.2-nginx
2+
3+ ENV LD_LIBRARY_PATH /usr/local/instantclient
4+ ENV ORACLE_HOME /usr/local/instantclient
5+
6+ # Download and unarchive Instant Client v11
7+ RUN apk add --update libaio libnsl && \
8+ curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
9+ curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
10+ curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
11+ unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
12+ unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
13+ unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
14+ ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
15+ ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
16+ ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
17+ ln -s ${ORACLE_HOME}/lib* /usr/lib && \
18+ ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
19+ ln -s /usr/lib/libnsl.so.2 /usr/lib/libnsl.so.1 && \
20+ docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
21+ docker-php-ext-install oci8
Original file line number Diff line number Diff line change 1+ FROM kooldev/php:8.2-nginx
2+
3+ ENV LD_LIBRARY_PATH /usr/local/instantclient
4+ ENV ORACLE_HOME /usr/local/instantclient
5+
6+ # Download and unarchive Instant Client v11
7+ RUN apk add --update libaio libnsl && \
8+ curl -o /tmp/instaclient-basic.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-basic-linux.x64-11.2.0.4.0.zip && \
9+ curl -o /tmp/instaclient-sdk.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sdk-linux.x64-11.2.0.4.0.zip && \
10+ curl -o /tmp/instaclient-sqlplus.zip https://raw.githubusercontent.com/bumpx/oracle-instantclient/master/instantclient-sqlplus-linux.x64-11.2.0.4.0.zip && \
11+ unzip -d /usr/local/ /tmp/instaclient-basic.zip && \
12+ unzip -d /usr/local/ /tmp/instaclient-sdk.zip && \
13+ unzip -d /usr/local/ /tmp/instaclient-sqlplus.zip && \
14+ ln -s /usr/local/instantclient_11_2 ${ORACLE_HOME} && \
15+ ln -s ${ORACLE_HOME}/libclntsh.so.* ${ORACLE_HOME}/libclntsh.so && \
16+ ln -s ${ORACLE_HOME}/libocci.so.* ${ORACLE_HOME}/libocci.so && \
17+ ln -s ${ORACLE_HOME}/lib* /usr/lib && \
18+ ln -s ${ORACLE_HOME}/sqlplus /usr/bin/sqlplus && \
19+ ln -s /usr/lib/libnsl.so.2 /usr/lib/libnsl.so.1 && \
20+ docker-php-ext-configure oci8 --with-oci8=instantclient,$ORACLE_HOME && \
21+ docker-php-ext-install oci8
Original file line number Diff line number Diff line change @@ -11,6 +11,17 @@ This image is based on [kooldev/php](https://github.com/kool-dev/docker-php), pl
1111- [ 7.4-nginx-oci8] ( https://github.com/kool-dev/docker-php-oci8/blob/main/7.4-nginx-oci8/Dockerfile )
1212- [ 7.4-nginx-oci8-prod] ( https://github.com/kool-dev/docker-php-oci8/blob/main/7.4-nginx-oci8-prod/Dockerfile )
1313
14+ ### 8.1
15+
16+ - [ 8.1-nginx-oci8] ( https://github.com/kool-dev/docker-php-oci8/blob/main/8.1-nginx-oci8/Dockerfile )
17+ - [ 8.1-nginx-oci8-prod] ( https://github.com/kool-dev/docker-php-oci8/blob/main/8.1-nginx-oci8-prod/Dockerfile )
18+
19+
20+ ### 8.2
21+
22+ - [ 8.2-nginx-oci8] ( https://github.com/kool-dev/docker-php-oci8/blob/main/8.2-nginx-oci8/Dockerfile )
23+ - [ 8.2-nginx-oci8-prod] ( https://github.com/kool-dev/docker-php-oci8/blob/main/8.2-nginx-oci8-prod/Dockerfile )
24+
1425## Environment Variables
1526
1627Please refer to [ kooldev/php] ( https://github.com/kool-dev/docker-php ) .
You can’t perform that action at this time.
0 commit comments