-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from lucassmacedo/main
Add PHP 8.2 and 8.3 Suport
- Loading branch information
Showing
21 changed files
with
307 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,36 +11,30 @@ jobs: | |
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: ['7.4', '8.0', '8.1'] | ||
version: ['8.0', '8.1', '8.2', '8.3'] | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/[email protected] | ||
|
||
- 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 | ||
- name: Build Swoole | ||
if: matrix.version != '7.4' | ||
run: | | ||
docker build --pull -t kooldev/php:${{ matrix.version }}-nginx-swoole-oci8 ${{ matrix.version }}-nginx-swoole-oci8 | ||
docker build --pull -t kooldev/php:${{ matrix.version }}-nginx-swoole-oci8-prod ${{ matrix.version }}-nginx-swoole-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);" | ||
- name: Tests Swoole | ||
if: matrix.version != '7.4' | ||
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-swoole-oci8 php -r "extension_loaded('oci8') or die(1);" | ||
docker run kooldev/php:${{ matrix.version }}-nginx-swoole-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] | ||
|
@@ -52,11 +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 | ||
- name: Push to DockerHub Swoole | ||
if: github.ref == 'refs/heads/main' && github.repository == 'kool-dev/docker-php-oci8' && matrix.version != '7.4' | ||
run: | | ||
docker push kooldev/php:${{ matrix.version }}-nginx-swoole-oci8 | ||
docker push kooldev/php:${{ matrix.version }}-nginx-swoole-oci8-prod | ||
docker push kooldev/php:${{ matrix.version }}-oci8-swoole-nginx | ||
docker push kooldev/php:${{ matrix.version }}-oci8-swoole-nginx-prod |
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
8.0-nginx-swoole-oci8-prod/Dockerfile → 8.0-oci8-swoole-nginx-prod/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
8.1-nginx-swoole-oci8/Dockerfile → 8.0-oci8-swoole-nginx/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
2 changes: 1 addition & 1 deletion
2
8.0-nginx-swoole-oci8/Dockerfile → 8.1-oci8-swoole-nginx/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
7.4-nginx-oci8-prod/Dockerfile → 8.2-oci8-nginx-prod/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM kooldev/php:8.3-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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM kooldev/php:8.3-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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM kooldev/php:8.3-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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
FROM kooldev/php:8.3-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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.