Merge pull request #2280 from acelaya-forks/feature/php-8.4-support

Feature/php 8.4 support
This commit is contained in:
Alejandro Celaya 2024-11-24 11:41:59 +01:00 committed by GitHub
commit fef512a7a3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 16 additions and 26 deletions

View File

@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-24.04 runs-on: ubuntu-24.04
strategy: strategy:
matrix: matrix:
php-version: ['8.2', '8.3'] # TODO 8.4 php-version: ['8.2', '8.3', '8.4']
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: './.github/actions/ci-setup' - uses: './.github/actions/ci-setup'

View File

@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com), and this
## [Unreleased] ## [Unreleased]
### Added ### Added
* [#2159](https://github.com/shlinkio/shlink/issues/2159) Add support for PHP 8.4.
* [#2207](https://github.com/shlinkio/shlink/issues/2207) Add `hasRedirectRules` flag to short URL API model. This flag tells if a specific short URL has any redirect rules attached to it. * [#2207](https://github.com/shlinkio/shlink/issues/2207) Add `hasRedirectRules` flag to short URL API model. This flag tells if a specific short URL has any redirect rules attached to it.
* [#1520](https://github.com/shlinkio/shlink/issues/1520) Allow short URLs list to be filtered by `domain`. * [#1520](https://github.com/shlinkio/shlink/issues/1520) Allow short URLs list to be filtered by `domain`.

View File

@ -1,4 +1,4 @@
FROM php:8.3-alpine3.19 as base FROM php:8.3-alpine3.20 AS base
ARG SHLINK_VERSION=latest ARG SHLINK_VERSION=latest
ENV SHLINK_VERSION ${SHLINK_VERSION} ENV SHLINK_VERSION ${SHLINK_VERSION}
@ -7,8 +7,8 @@ ENV SHLINK_RUNTIME ${SHLINK_RUNTIME}
ENV USER_ID '1001' ENV USER_ID '1001'
ENV PDO_SQLSRV_VERSION 5.12.0 ENV PDO_SQLSRV_VERSION 5.12.0
ENV MS_ODBC_DOWNLOAD 'b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486' ENV MS_ODBC_DOWNLOAD '7/6/d/76de322a-d860-4894-9945-f0cc5d6a45f8'
ENV MS_ODBC_SQL_VERSION 18_18.1.1.1 ENV MS_ODBC_SQL_VERSION 18_18.4.1.1
ENV LC_ALL 'C' ENV LC_ALL 'C'
WORKDIR /etc/shlink WORKDIR /etc/shlink

View File

@ -18,7 +18,8 @@
"ext-json": "*", "ext-json": "*",
"ext-mbstring": "*", "ext-mbstring": "*",
"ext-pdo": "*", "ext-pdo": "*",
"akrabat/ip-address-middleware": "^2.3", "acelaya/crawler-detect": "^1.3",
"acelaya/ip-address-middleware": "^2.4",
"cakephp/chronos": "^3.1", "cakephp/chronos": "^3.1",
"doctrine/dbal": "^4.2", "doctrine/dbal": "^4.2",
"doctrine/migrations": "^3.8", "doctrine/migrations": "^3.8",
@ -28,7 +29,6 @@
"geoip2/geoip2": "^3.0", "geoip2/geoip2": "^3.0",
"guzzlehttp/guzzle": "^7.9", "guzzlehttp/guzzle": "^7.9",
"hidehalo/nanoid-php": "^2.0", "hidehalo/nanoid-php": "^2.0",
"jaybizzle/crawler-detect": "^1.2.116",
"laminas/laminas-config-aggregator": "^1.15", "laminas/laminas-config-aggregator": "^1.15",
"laminas/laminas-diactoros": "^3.5", "laminas/laminas-diactoros": "^3.5",
"laminas/laminas-inputfilter": "^2.30", "laminas/laminas-inputfilter": "^2.30",
@ -39,7 +39,7 @@
"mezzio/mezzio-fastroute": "^3.12", "mezzio/mezzio-fastroute": "^3.12",
"mezzio/mezzio-problem-details": "^1.15", "mezzio/mezzio-problem-details": "^1.15",
"mlocati/ip-lib": "^1.18.1", "mlocati/ip-lib": "^1.18.1",
"mobiledetect/mobiledetectlib": "^4.8", "mobiledetect/mobiledetectlib": "4.8.x-dev#920c549 as 4.9",
"pagerfanta/core": "^3.8", "pagerfanta/core": "^3.8",
"ramsey/uuid": "^4.7", "ramsey/uuid": "^4.7",
"shlinkio/doctrine-specification": "^2.1.1", "shlinkio/doctrine-specification": "^2.1.1",

View File

@ -3,7 +3,7 @@
set -ex set -ex
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list > /etc/apt/sources.list.d/mssql-release.list curl https://packages.microsoft.com/config/ubuntu/24.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
apt-get update apt-get update
ACCEPT_EULA=Y apt-get install msodbcsql18 ACCEPT_EULA=Y apt-get install msodbcsql18
# apt-get install unixodbc-dev # apt-get install unixodbc-dev

View File

@ -1,10 +1,10 @@
FROM php:8.3-fpm-alpine3.19 FROM php:8.3-fpm-alpine3.20
MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com> MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com>
ENV APCU_VERSION 5.1.23 ENV APCU_VERSION 5.1.24
ENV PDO_SQLSRV_VERSION 5.12.0 ENV PDO_SQLSRV_VERSION 5.12.0
ENV MS_ODBC_DOWNLOAD 'b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486' ENV MS_ODBC_DOWNLOAD '7/6/d/76de322a-d860-4894-9945-f0cc5d6a45f8'
ENV MS_ODBC_SQL_VERSION 18_18.1.1.1 ENV MS_ODBC_SQL_VERSION 18_18.4.1.1
RUN apk update RUN apk update

View File

@ -1,10 +1,9 @@
FROM php:8.3-alpine3.19 FROM php:8.3-alpine3.20
MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com> MAINTAINER Alejandro Celaya <alejandro@alejandrocelaya.com>
ENV APCU_VERSION 5.1.23
ENV PDO_SQLSRV_VERSION 5.12.0 ENV PDO_SQLSRV_VERSION 5.12.0
ENV MS_ODBC_DOWNLOAD 'b/9/f/b9f3cce4-3925-46d4-9f46-da08869c6486' ENV MS_ODBC_DOWNLOAD '7/6/d/76de322a-d860-4894-9945-f0cc5d6a45f8'
ENV MS_ODBC_SQL_VERSION 18_18.1.1.1 ENV MS_ODBC_SQL_VERSION 18_18.4.1.1
RUN apk update RUN apk update
@ -36,16 +35,6 @@ RUN apk add --no-cache --virtual .phpize-deps $PHPIZE_DEPS linux-headers && \
apk del .phpize-deps apk del .phpize-deps
RUN docker-php-ext-install bcmath RUN docker-php-ext-install bcmath
# Install APCu extension
ADD https://pecl.php.net/get/apcu-$APCU_VERSION.tgz /tmp/apcu.tar.gz
RUN mkdir -p /usr/src/php/ext/apcu \
&& tar xf /tmp/apcu.tar.gz -C /usr/src/php/ext/apcu --strip-components=1 \
&& docker-php-ext-configure apcu \
&& docker-php-ext-install apcu \
&& rm /tmp/apcu.tar.gz \
&& rm /usr/local/etc/php/conf.d/docker-php-ext-apcu.ini \
&& echo extension=apcu.so > /usr/local/etc/php/conf.d/20-php-ext-apcu.ini
# Install xdebug and sqlsrv driver # Install xdebug and sqlsrv driver
RUN apk add --update linux-headers && \ RUN apk add --update linux-headers && \
wget https://download.microsoft.com/download/${MS_ODBC_DOWNLOAD}/msodbcsql${MS_ODBC_SQL_VERSION}-1_amd64.apk && \ wget https://download.microsoft.com/download/${MS_ODBC_DOWNLOAD}/msodbcsql${MS_ODBC_SQL_VERSION}-1_amd64.apk && \