1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-04-21 07:22:20 +02:00

Update to PHP 8.0 as the minimum required version

This commit is contained in:
Kovah 2022-12-14 23:01:27 +01:00
parent 367ff30702
commit a256cca567
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
8 changed files with 298 additions and 322 deletions

View File

@ -12,10 +12,10 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Use Node.js 16 LTS
- name: Use Node.js 18 LTS
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18
- name: Try to build the assets
run: |
@ -42,7 +42,7 @@ jobs:
strategy:
matrix:
operating-system: [ ubuntu-latest ]
php-versions: [ '7.4', '8.0', '8.1' ]
php-versions: [ '8.0', '8.1', '8.2' ]
steps:
- uses: actions/checkout@v2

View File

@ -84,5 +84,5 @@ docker exec -it linkace-php composer run test
The Base image for LinkAce contains several packages and PHP extensions needed by LinkAce. It shortens the build time of the release images. This step is not needed by any developer working on LinkAce and is just a documentation for maintainers.
```bash
docker buildx build --push --platform "linux/amd64,linux/arm64,linux/arm/v7" -t linkace/base-image:php-8.1-alpine -f resources/docker/dockerfiles/release-base.Dockerfile .
docker buildx build --push --platform "linux/amd64,linux/arm64,linux/arm/v7" -t linkace/base-image:php-8.2-alpine -f resources/docker/dockerfiles/release-base.Dockerfile .
```

View File

@ -4,7 +4,7 @@
"license": "GPL-3.0-or-later",
"type": "project",
"require": {
"php": "^7.4 | ^8.0 | ^8.1",
"php": "^8.0 | ^8.1 | ^8.2",
"composer/semver": "^1.5",
"doctrine/dbal": "^2.10.2",
"fideloper/proxy": "^4.4",

578
composer.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
# DOCKERFILE DEVELOPMENT
# Installs MySQL Client for database exports, xDebug with PCov and Composer
FROM php:7.4-fpm
FROM php:8.0-fpm
WORKDIR /app
RUN apt-get update && apt-get install -y \

View File

@ -1,4 +1,4 @@
FROM php:8.1-fpm-alpine
FROM php:8.2-fpm-alpine
# Install package and PHP dependencies
RUN apk add --no-cache mariadb-client postgresql postgresql-dev zip libzip-dev; \

View File

@ -22,7 +22,7 @@ RUN composer install -n --prefer-dist --no-dev
# ================================
# Compile all assets
FROM node:16 AS npm_builder
FROM node:18 AS npm_builder
WORKDIR /srv
COPY ./resources/assets ./resources/assets
@ -33,7 +33,7 @@ RUN npm run production
# ================================
# Prepare the final image
FROM linkace/base-image:php-8.1-alpine
FROM linkace/base-image:php-8.2-alpine
WORKDIR /app
# Copy the app into the container

View File

@ -14,25 +14,15 @@ upload_max_filesize = 20M
post_max_size = 20M
; xDebug
; Uncomment the zend_extension line to enable xDebug
; -------
xdebug.idekey = "phpstorm"
xdebug.remote_enable = 1
xdebug.remote_host = docker.for.mac.localhost
xdebug.remote_port = 10000
xdebug.remote_connect_back = 0
xdebug.remote_log = /tmp/xdebug_remote.log
xdebug.max_nesting_level = 300
xdebug.scream = 0
xdebug.cli_color = 1
xdebug.show_local_vars = 1
xdebug.mode = off
xdebug.profiler_enable = 0
xdebug.profiler_enable_trigger=1
xdebug.profiler_enable_trigger_value=1
xdebug.profiler_append = 1
xdebug.mode = debug
xdebug.idekey = phpstorm
xdebug.start_with_request=yes
xdebug.log=/dev/stdout
xdebug.log_level=0
xdebug.client_host = docker.for.mac.localhost
xdebug.client_port = 10000
; opcache
; -------