diff --git a/src/images/php/7.3-cli/bin/init b/src/images/php/7.3-cli/bin/init index b483a89..861356a 100644 --- a/src/images/php/7.3-cli/bin/init +++ b/src/images/php/7.3-cli/bin/init @@ -66,10 +66,15 @@ main() { ## # @note Change ownership to 1000:1000 account to be able to work # with source code on the host + # @note Change ownership to 1000:1000 account to Composer folder. + # This is required to avoid permission errors + # when using Composer # @link https://github.com/magento/magento-cloud-docker/blob/develop/images/php/cli/Dockerfile#L75 # @link https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user + # @link https://github.com/magento/magento-cloud-docker/blob/1.4.0/images/php/cli/Dockerfile#L23 ## chown -R www:www . + chown -R www:www "$COMPOSER_HOME" ## # @note Return with success diff --git a/src/images/php/7.4-cli/bin/init b/src/images/php/7.4-cli/bin/init index 12b61a2..c3d93d0 100644 --- a/src/images/php/7.4-cli/bin/init +++ b/src/images/php/7.4-cli/bin/init @@ -66,10 +66,15 @@ main() { ## # @note Change ownership to 1000:1000 account to be able to work # with source code on the host + # @note Change ownership to 1000:1000 account to Composer folder. + # This is required to avoid permission errors + # when using Composer # @link https://github.com/magento/magento-cloud-docker/blob/develop/images/php/cli/Dockerfile#L75 # @link https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user + # @link https://github.com/magento/magento-cloud-docker/blob/1.4.0/images/php/cli/Dockerfile#L23 ## chown -R www:www . + chown -R www:www "$COMPOSER_HOME" ## # @note Return with success diff --git a/src/images/php/8.1-cli/bin/init b/src/images/php/8.1-cli/bin/init index 12b61a2..c3d93d0 100644 --- a/src/images/php/8.1-cli/bin/init +++ b/src/images/php/8.1-cli/bin/init @@ -66,10 +66,15 @@ main() { ## # @note Change ownership to 1000:1000 account to be able to work # with source code on the host + # @note Change ownership to 1000:1000 account to Composer folder. + # This is required to avoid permission errors + # when using Composer # @link https://github.com/magento/magento-cloud-docker/blob/develop/images/php/cli/Dockerfile#L75 # @link https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user + # @link https://github.com/magento/magento-cloud-docker/blob/1.4.0/images/php/cli/Dockerfile#L23 ## chown -R www:www . + chown -R www:www "$COMPOSER_HOME" ## # @note Return with success diff --git a/src/images/php/8.2-cli/bin/init b/src/images/php/8.2-cli/bin/init index 12b61a2..c3d93d0 100755 --- a/src/images/php/8.2-cli/bin/init +++ b/src/images/php/8.2-cli/bin/init @@ -66,10 +66,15 @@ main() { ## # @note Change ownership to 1000:1000 account to be able to work # with source code on the host + # @note Change ownership to 1000:1000 account to Composer folder. + # This is required to avoid permission errors + # when using Composer # @link https://github.com/magento/magento-cloud-docker/blob/develop/images/php/cli/Dockerfile#L75 # @link https://code.visualstudio.com/remote/advancedcontainers/add-nonroot-user + # @link https://github.com/magento/magento-cloud-docker/blob/1.4.0/images/php/cli/Dockerfile#L23 ## chown -R www:www . + chown -R www:www "$COMPOSER_HOME" ## # @note Return with success