Skip to content

Commit

Permalink
eco wordpress - resolve upstream MariaDB#178
Browse files Browse the repository at this point in the history
Bump to php-8.2 and new npm versions
  • Loading branch information
grooverdan committed Sep 13, 2023
1 parent 930c800 commit ed4bfd4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions eco_build_images/wordpress_phpunit_test_runner.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:7.4-cli
FROM php:8.2-cli

# https://github.com/WordPress/phpunit-test-runner/blob/master/README.md#0-requirements

Expand All @@ -17,13 +17,14 @@ RUN apt-get update ; \
&& docker-php-ext-install -j"$(nproc)" gd mysqli \
&& rm -rf /var/lib/apt/lists/*

# Waiting on upstream PRs #176, 177, with issue #178 as added bonus
# Waiting on upstream PRs #176, #177
RUN git clone --branch all_changes --single-branch --depth 1 https://github.com/grooverdan/phpunit-test-runner.git /phpunit-test-runner

# because of https://github.com/WordPress/wordpress-develop/commit/db0290b04264de1fa791b6973ce3122ccc160a90
ENV NVM_DIR="/root/.nvm"

RUN bash -c "set -o pipefail ; curl -o - https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash; . \"$NVM_DIR/nvm.sh\" && nvm install 14.15.0"
# Match nodejs version https://nodejs.org/en/download/releases to supported npm range
# https://github.com/WordPress/wordpress-develop/blob/trunk/package.json
RUN bash -c "set -o pipefail ; curl -o - https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash; . \"$NVM_DIR/nvm.sh\" && nvm install 16.20.2"

COPY wordpress_phpunit_test_runner.env /phpunit-test-runner/.env
COPY wordpress_phpunit_test_runner.entrypoint /entrypoint.sh
Expand Down

0 comments on commit ed4bfd4

Please sign in to comment.