Preconditions
- Magento Cloud Docker with PHP >= 8.1
Steps to reproduce
- Executing any Docker command within a PHP container such as
bin/magento-docker bash
- Check out the output
Expected result
- No cache is cleared
Actual result
- Full composer cache gets cleared
Additional information
This is due to the fact that the docker-entrypoint.sh has the following lines now:
# Configure composer
[ ! -z "${COMPOSER_VERSION}" ] && \
composer clearcache && \
composer self-update $COMPOSER_VERSION
because of that, Composer's cache is always cleared when the COMPOSER_VERSION environment variable is set.
This is very annoying since by default the local (host machine) Composer cache directory is a volume to the Docker's Composer cache directory, meaning that Magento Cloud Docker would clear the entire Composer cache everytime we run any command that runs the PHP container...
Preconditions
Steps to reproduce
bin/magento-docker bashExpected result
Actual result
Additional information
This is due to the fact that the
docker-entrypoint.shhas the following lines now:because of that, Composer's cache is always cleared when the COMPOSER_VERSION environment variable is set.
This is very annoying since by default the local (host machine) Composer cache directory is a volume to the Docker's Composer cache directory, meaning that Magento Cloud Docker would clear the entire Composer cache everytime we run any command that runs the PHP container...