Skip to content

Commit 00cc7e3

Browse files
Merge pull request #4 from controlaltdelete-nl/fix/pin-magerun2-php81
Pin n98-magerun2 9.5.1 for PHP 8.1
2 parents 10fd497 + 5446552 commit 00cc7e3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,14 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
163163

164164
# Install Magerun2
165165
# Use https://files.magerun.net/n98-magerun2-7.5.0.phar for PHP 7.4
166+
# Use https://files.magerun.net/n98-magerun2-9.5.1.phar for PHP 8.1 (10.0.0 requires PHP >= 8.2)
166167
# Use https://files.magerun.net/n98-magerun2-6.1.1.phar for PHP 7.3
167168
# Use https://files.magerun.net/n98-magerun2-4.7.0.phar for PHP 7.2
168169
# Use https://files.magerun.net/n98-magerun-1.103.2.phar for PHP 7.1
169170
RUN set -e; \
170-
if [ "$PHP_VERSION" = "7.4" ]; then \
171+
if [ "$PHP_VERSION" = "8.1" ]; then \
172+
url="https://files.magerun.net/n98-magerun2-9.5.1.phar"; \
173+
elif [ "$PHP_VERSION" = "7.4" ]; then \
171174
url="https://files.magerun.net/n98-magerun2-7.5.0.phar"; \
172175
elif [ "$PHP_VERSION" = "7.3" ]; then \
173176
url="https://files.magerun.net/n98-magerun2-6.1.1.phar"; \

0 commit comments

Comments
 (0)