Skip to content

Commit

Permalink
fix: adjust Composer permissions after deploy script in PHP CLI images [
Browse files Browse the repository at this point in the history
  • Loading branch information
d3p1 committed Dec 11, 2024
1 parent 0fdc865 commit 428caab
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/images/php/7.3-cli/bin/init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/images/php/7.4-cli/bin/init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/images/php/8.1-cli/bin/init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions src/images/php/8.2-cli/bin/init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 428caab

Please sign in to comment.