Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eco wordpress - resolve upstream #178 #171

Merged
merged 1 commit into from
Sep 13, 2023
Merged
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
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