Skip to content

Commit 111d279

Browse files
committed
Upgrade to php:8.4 and node:22
CI: fix `docker-compose: command not found`
1 parent 4b4a1d4 commit 111d279

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
- name: Build
1818
run: |
1919
cp .env.dist .env
20-
XDEBUG=1 docker-compose build
20+
XDEBUG=1 docker compose build
2121
2222
- name: Test
2323
run: |
2424
export MYSQL_ROOT_PASSWORD=root
2525
set -x
2626
ln -sr docker-compose.dev.yml docker-compose.override.yml
2727
docker/console php -i
28-
docker-compose up -d
28+
docker compose up -d
2929
curl -f localhost:8080
3030
docker/console id
3131
docker/redis-cli info

docker/app/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
ARG PHP_VERSION=8.1
1+
ARG PHP_VERSION=8.4
22

33
FROM php:$PHP_VERSION-fpm
44

55
ARG PECL_EXTENSIONS="apcu redis"
66

77
RUN apt-get -y update && \
8-
apt-get -y install --no-install-recommends git unzip libpng-dev libjpeg-dev libfreetype6-dev libicu-dev libzip-dev libxml2-dev libxslt-dev libwebp-dev python2 && \
8+
apt-get -y install --no-install-recommends git unzip libpng-dev libjpeg-dev libfreetype6-dev libicu-dev libzip-dev libxml2-dev libxslt-dev libwebp-dev python3 && \
99
docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/ --with-webp=/usr && \
1010
docker-php-ext-install -j$(nproc) pdo_mysql bcmath gd intl opcache zip soap xsl && \
1111
pecl install $PECL_EXTENSIONS && \
@@ -18,7 +18,7 @@ RUN apt-get -y update && \
1818
RUN curl -Lo /usr/bin/composer https://getcomposer.org/composer-stable.phar && \
1919
chmod +x /usr/bin/composer
2020

21-
ARG NODE_VERSION=16
21+
ARG NODE_VERSION=22
2222

2323
RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash && \
2424
apt-get install -y nodejs

docker/console

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/bash
22

3-
docker-compose run --rm app $@
3+
docker compose run --rm app $@

0 commit comments

Comments
 (0)