Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG PHP_VERSION=8.3

FROM php:${PHP_VERSION}-fpm-bullseye
FROM php:${PHP_VERSION}-fpm-bookworm

LABEL org.opencontainers.image.url=https://github.com/ndigitals/wp-dev-container/pkgs/container/wp-dev-container
LABEL org.opencontainers.image.documentation=https://github.com/ndigitals/wp-dev-container/wiki
Expand All @@ -15,29 +15,31 @@ WORKDIR /var/www
# This setup is generally a direct copy from https://github.com/WordPress/wpdev-docker-images
#

ENV COMPOSER_ALLOW_SUPERUSER 1
ENV COMPOSER_HOME /tmp
ENV COMPOSER_ALLOW_SUPERUSER=1
ENV COMPOSER_HOME=/tmp

# install the PHP extensions we need
RUN set -ex; \
\
apt-get update; \
\
apt-get install -y --no-install-recommends libjpeg-dev libpng-dev libwebp-dev libzip-dev libmemcached-dev unzip libmagickwand-dev ghostscript libonig-dev locales sudo rsync libxslt-dev git; \
apt-get install -y --no-install-recommends libjpeg-dev libpng-dev libwebp-dev libzip-dev libssl-dev libmemcached-dev unzip libmagickwand-dev ghostscript libonig-dev locales sudo rsync libxslt-dev git; \
apt-get upgrade openssl -y; \
update-ca-certificates --fresh; \
sed -i 's/^# *\(\(ru_RU\|fr_FR\|de_DE\|es_ES\|ja_JP\).UTF-8\)/\1/' /etc/locale.gen; \
locale-gen; \
\
docker-php-ext-configure gd --enable-gd --with-jpeg=/usr --with-webp=/usr; \
\
docker-php-ext-install gd opcache mysqli zip exif intl mbstring xml xsl; \
docker-php-ext-install opcache || true; \
\
docker-php-ext-install gd mysqli zip exif intl mbstring xml xsl; \
\
curl --location --output /usr/local/bin/pickle https://github.com/FriendsOfPHP/pickle/releases/download/v0.7.11/pickle.phar; \
chmod +x /usr/local/bin/pickle; \
\
pickle install memcached-3.2.0; \
pickle install xdebug-3.3.0; \
pickle install memcached-3.4.0; \
pickle install xdebug-3.5.0; \
pickle install imagick; \
docker-php-ext-enable imagick; \
\
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [ "$LOCAL_PHP_XDEBUG" = true ]; then
docker-php-ext-enable xdebug
rm -f /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
else
docker-php-ext-enable opcache
docker-php-ext-enable opcache || true
rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
fi

Expand Down
2 changes: 1 addition & 1 deletion renovate.json → .github/renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
"config:recommended"
]
}
8 changes: 5 additions & 3 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@ jobs:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
NODE_VERSION:
- '16'
- '18'
- '20'
- '22'
- '24'
builder:
- ubuntu-22.04
- self-hosted
Expand All @@ -54,7 +56,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0 # Required due to the way Git works, without it this action won't be able to find any or the correct tags

Expand All @@ -73,7 +75,7 @@ jobs:

# https://github.com/marketplace/actions/setup-node-js-environment
- name: Setup Node Environment
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'

Expand Down Expand Up @@ -205,7 +207,7 @@ jobs:

# https://github.com/marketplace/actions/create-release
- name: Create Release
uses: ncipollo/release-action@v1.16.0
uses: ncipollo/release-action@v1.20.0
if: github.event_name == 'push'
with:
name: ${{ steps.release-name.outputs.RELEASE_NAME }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jobs:
matrix:
PHP_VERSION:
- '8.1'
- '8.3'
- '8.4'
NODE_VERSION:
- '18'
- '22'
- '24'
builder:
- ubuntu-22.04
- self-hosted
Expand All @@ -45,7 +45,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 0 # Required due to the way Git works, without it this action won't be able to find any or the correct tags

Expand All @@ -64,7 +64,7 @@ jobs:

# https://github.com/marketplace/actions/setup-node-js-environment
- name: Setup Node Environment
uses: actions/setup-node@v4
uses: actions/setup-node@v6
with:
node-version-file: '.nvmrc'

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ WordPress Plugin & Theme Dev Container

## Supported tags

- `php-8.3-node-22`, `php-8.3-node-20`, `php-8.3-node-18`, `php-8.3-node-16`
- `php-8.2-node-22`, `php-8.2-node-20`, `php-8.2-node-18`, `php-8.2-node-16`
- `php-8.1-node-22`, `php-8.1-node-20`, `php-8.1-node-18`, `php-8.1-node-16`
- `php-8.0-node-22`, `php-8.0-node-20`, `php-8.0-node-18`, `php-8.0-node-16`
- `php-8.4-node-24`, `php-8.4-node-22`, `php-8.4-node-20`, `php-8.4-node-18`, `php-8.4-node-16`
- `php-8.3-node-24`, `php-8.3-node-22`, `php-8.3-node-20`, `php-8.3-node-18`, `php-8.3-node-16`
- `php-8.2-node-24`, `php-8.2-node-22`, `php-8.2-node-20`, `php-8.2-node-18`, `php-8.2-node-16`
- `php-8.1-node-24`, `php-8.1-node-22`, `php-8.1-node-20`, `php-8.1-node-18`, `php-8.1-node-16`

## Prerequisites

Expand Down