From deedf542139483d0b041352f4463a61f14b9f3b9 Mon Sep 17 00:00:00 2001 From: Andrii Poltoratskyi Date: Wed, 23 Jul 2025 11:15:11 -0700 Subject: [PATCH] update supported repository for converter-to-composer app --- services/web-servers/apache/Dockerfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/services/web-servers/apache/Dockerfile b/services/web-servers/apache/Dockerfile index 159c0f6..c7d9ce8 100644 --- a/services/web-servers/apache/Dockerfile +++ b/services/web-servers/apache/Dockerfile @@ -109,9 +109,16 @@ ARG CACHEBUST=1 # MAGENTO TOOLS: RUN curl -o /usr/local/bin/n98-magerun2 https://files.magerun.net/n98-magerun2.phar; \ curl -o /etc/bash_completion.d/n98-magerun2.phar.bash https://raw.githubusercontent.com/netz98/n98-magerun2/master/res/autocompletion/bash/n98-magerun2.phar.bash; \ - curl -o /usr/local/bin/m2-convert-for-composer https://raw.githubusercontent.com/isitnikov/m2-convert-patch-for-composer-install/master/convert-for-composer.php; \ curl -o /etc/bash_completion.d/magento2-bash-completion https://raw.githubusercontent.com/yvoronoy/magento2-bash-completion/master/magento2-bash-completion-enterprise +RUN git ls-remote https://github.com/magento-sparta/m2-convert-patch-for-composer-install.git 2>&1 | if grep -q HEAD; then \ + git clone https://github.com/magento-sparta/m2-convert-patch-for-composer-install.git /usr/local/src/m2-convert-for-composer; \ + else echo; fi && \ + if [ -d /usr/local/src/m2-convert-for-composer ]; then \ + chmod +x /usr/local/src/m2-convert-for-composer/convert-for-composer.php && \ + ln -s /usr/local/src/m2-convert-for-composer/convert-for-composer.php /usr/local/bin/m2-convert-for-composer; \ + else echo; fi + # ADOBE TOOLS (as root): ## Internally we are using m2install from sparta: RUN curl -o /usr/local/bin/m2install.sh https://raw.githubusercontent.com/magento-sparta/m2install/master/m2install.sh; \