Skip to content

Commit

Permalink
Feature: Remove Composer 1 support
Browse files Browse the repository at this point in the history
  • Loading branch information
michielgerritsen committed Nov 25, 2024
1 parent 4780aee commit e90086f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion magento/Dockerfile-2.3
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ ARG SAMPLE_DATA=false
ENV CI=true
ENV URL=http://localhost/
ENV FLAT_TABLES=false
ENV COMPOSER_VERSION=1

COPY scripts/retry retry
COPY scripts/install-phpstan.php scripts/install-phpstan.php
Expand All @@ -19,6 +18,9 @@ COPY patches/APSB22-12/MDVA-43443_EE_2.4.2-p2_COMPOSER_v1.patch MDVA-43443_EE_2.
COPY templates/memory-limit-php.ini /usr/local/etc/php/conf.d/memory-limit-php.ini

RUN ./start-services && \
composer self-update --2 && \
echo "Composer version:" && \
composer --version && \
curl -o magento.zip https://repo-magento-mirror.fooman.co.nz/dist/magento/$MAGENTO_TYPE/magento-$MAGENTO_TYPE-$MAGENTO_VERSION.zip && \
unzip -q magento.zip -d . && \
rm magento.zip && \
Expand Down
2 changes: 1 addition & 1 deletion magento/Dockerfile-2.4
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ COPY scripts/patch-AC2855.php scripts/patch-AC2855.php
COPY templates/memory-limit-php.ini /usr/local/etc/php/conf.d/memory-limit-php.ini

RUN ./start-services && \
if (( $(php -r 'echo version_compare(getenv("MAGENTO_VERSION"), "2.4.2", "<=") ? "true" : "false";') = "true" )); then composer self-update --1; else composer self-update --2; fi && \
composer self-update --2 && \
echo "Composer version:" && \
composer --version && \
curl -o magento.zip https://repo-magento-mirror.fooman.co.nz/dist/magento/$MAGENTO_TYPE/magento-$MAGENTO_TYPE-$MAGENTO_VERSION.zip && \
Expand Down

0 comments on commit e90086f

Please sign in to comment.