Skip to content

Commit

Permalink
Merge pull request #12 from solidbunch/update-php-8.2
Browse files Browse the repository at this point in the history
Update php 8.2
  • Loading branch information
yuriipavlov authored Oct 6, 2024
2 parents f63b00b + 9a92f5c commit c5f7bc0
Show file tree
Hide file tree
Showing 8 changed files with 112 additions and 86 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ mailhog:
docker-compose -f docker-compose.build.yml run --service-ports --rm --name mailhog mailhog

log:
docker compose logs -f
docker compose logs -f $(PARAMS)

run:
$(LOGO_SH)
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,31 +35,31 @@
"package": {
"name": "solidbunch/wordpress-core",
"type": "laravel-library",
"version": "6.6.1",
"version": "6.6.2",
"dist": {
"type": "zip",
"url": "https://wordpress.org/wordpress-6.6.1.zip"
"url": "https://wordpress.org/wordpress-6.6.2.zip"
}
}
},
{
"type": "git",
"type": "vcs",
"url": "[email protected]:solidbunch/starter-kit-theme.git"
}
],
"require": {
"php": ">=8.1",
"solidbunch/wordpress-core": "6.6.1",
"solidbunch/wordpress-core": "6.6.2",
"composer/installers": "2.2.0",
"solidbunch/starter-kit-theme": "dev-develop",
"wpackagist-plugin/contact-form-7":"5.9.6",
"wpackagist-plugin/redirection":"5.4.2",
"wpackagist-plugin/svg-support":"2.5.5"
"wpackagist-plugin/contact-form-7":"5.9.8",
"wpackagist-plugin/redirection":"5.5.0",
"wpackagist-plugin/svg-support":"2.5.8"
},
"require-dev": {
"roave/security-advisories": "dev-latest",
"wpackagist-plugin/rewrite-rules-inspector": "1.4.0",
"wpackagist-plugin/query-monitor": "3.16.3"
"wpackagist-plugin/query-monitor": "3.16.4"
},
"config": {
"optimize-autoloader": true,
Expand Down
147 changes: 83 additions & 64 deletions composer.lock

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions config/environment/.env.main
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ APP_BUILD_MODE=dev

# Docker containers images
# use build: ./dockerfiles/service-name in docker-compose.yml file for building just local images
APP_DATABASE_IMAGE=ghcr.io/solidbunch/starter-kit-mariadb:11.4.2-noble
APP_PHP_IMAGE=ghcr.io/solidbunch/starter-kit-php:8.1-fpm-alpine3.20
APP_NGINX_IMAGE=ghcr.io/solidbunch/starter-kit-nginx:1.27-alpine3.19
APP_DATABASE_IMAGE=ghcr.io/solidbunch/starter-kit-mariadb:11.5.2-noble
APP_PHP_IMAGE=ghcr.io/solidbunch/starter-kit-php:8.2-fpm-alpine3.20
APP_NGINX_IMAGE=ghcr.io/solidbunch/starter-kit-nginx:1.27-alpine3.20
APP_CRON_IMAGE=ghcr.io/solidbunch/starter-kit-cron:1.5-alpine3.20
APP_COMPOSER_IMAGE=ghcr.io/solidbunch/starter-kit-composer:2.7
APP_COMPOSER_IMAGE=ghcr.io/solidbunch/starter-kit-composer:2.8-alpine3.20
APP_NODE_IMAGE=ghcr.io/solidbunch/starter-kit-node:18-alpine3.20
APP_PHPMYADMIN_IMAGE=phpmyadmin:5.2-apache
APP_MAILHOG_IMAGE=mailhog/mailhog:v1.0.1
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/composer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM ${APP_PHP_IMAGE}
# Installing PHP Composer #
##################################
# https://hub.docker.com/_/composer
COPY --from=composer:2.7 /usr/bin/composer /usr/bin/composer
COPY --from=composer:2.8 /usr/bin/composer /usr/bin/composer

##################################
# Composer dependencies #
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/mariadb/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Run from original mariadb ubuntu
FROM mariadb:11.4.2-noble
FROM mariadb:11.5.2-noble

# Install pv
RUN apt-get update; \
Expand Down
2 changes: 1 addition & 1 deletion dockerfiles/nginx/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# Supplement to original file
#
FROM nginx:1.27-alpine3.19
FROM nginx:1.27-alpine3.20

RUN apk add --no-cache openssl

Expand Down
19 changes: 13 additions & 6 deletions dockerfiles/php/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
FROM php:8.1-fpm-alpine3.20
FROM php:8.2-fpm-alpine3.20

ENV XDEBUG_VERSION=3.1.4
ENV XDEBUG_VERSION=3.3.2
ENV IMAGICK_VERSION=3.7.0

##################################
# Adding WP-CLI #
##################################
# https://hub.docker.com/_/wordpress
COPY --from=wordpress:cli-2.10-php8.1 /usr/local/bin/wp /usr/local/bin/wp
COPY --from=wordpress:cli-2.11-php8.2 /usr/local/bin/wp /usr/local/bin/wp

##################################
# Persistent dependencies #
##################################
RUN set -eux; \
apk update; \
apk add --no-cache \
bash \
# Ghostscript is required for rendering PDF previews
Expand All @@ -39,13 +40,16 @@ RUN set -ex; \
libjpeg-turbo-dev \
libpng-dev \
libwebp-dev \
libavif-dev \
aom-dev \
libzip-dev \
; \
\
docker-php-ext-configure gd \
--with-freetype \
--with-jpeg \
--with-webp \
--with-avif \
; \
docker-php-ext-install -j "$(nproc)" \
bcmath \
Expand All @@ -54,9 +58,12 @@ RUN set -ex; \
intl \
mysqli \
zip \
; \
# Install Xdebug see https://xdebug.org/docs/install
; \
apk update; \
# Install Xdebug see https://xdebug.org/docs/install \
apk add --no-cache linux-headers autoconf make g++; \
pecl install xdebug-${XDEBUG_VERSION}; \
apk del autoconf make g++ linux-headers; \
#
# WARNING: imagick is likely not supported on Alpine: https://github.com/Imagick/imagick/issues/328
# https://pecl.php.net/package/imagick
Expand Down Expand Up @@ -97,7 +104,7 @@ RUN mkdir -p /var/log/wordpress
##################################
RUN mkdir /docker-entrypoint.d

COPY docker-entrypoint.sh /
COPY docker-entrypoint.sh /docker-entrypoint.sh
COPY ./docker-entrypoint.d/* /docker-entrypoint.d

RUN chmod +x /docker-entrypoint.sh
Expand Down

0 comments on commit c5f7bc0

Please sign in to comment.