Skip to content

Commit bca4a99

Browse files
Merge branch 'develop' into MAGECLOUD-5112
2 parents 2dfc277 + 3589a1b commit bca4a99

File tree

9 files changed

+74
-40
lines changed

9 files changed

+74
-40
lines changed

.github/CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ You must have a [GitHub account](https://help.github.com/en/github/getting-start
2424

2525
## Contribution process
2626
1. Search current [listed issues](https://github.com/magento/magento-cloud-docker/issues) (open or closed) for similar proposals of intended contribution before starting work on a new contribution.
27-
2. Review the [Contributor License Agreement](https://magento.com/legaldocuments/mca) if this is your first time contributing.
27+
2. Review and sign the [Contributor License Agreement (CLA)](https://opensource.adobe.com/cla.html) if this is your first time contributing. You only need to sign the CLA once.
2828
3. Create and test your work.
2929
4. Fork the Magento Cloud repository according to the [Fork A Repository instructions](https://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html#fork) and when you are ready to send us a pull request – follow the [Create A Pull Request instructions](https://devdocs.magento.com/guides/v2.3/contributor-guide/contributing.html#pull_request).
3030
5. After you submit the pull request, the Magento Cloud development team will review the contribution and collaborate with you as needed to incorporate your proposed changes.

images/php/7.1-cli/docker-entrypoint.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,16 @@ if [ "$ENABLE_SENDMAIL" == "true" ]; then
4646
/etc/init.d/sendmail start
4747
fi
4848

49-
# Enable PHP extensions
5049
PHP_EXT_DIR=/usr/local/etc/php/conf.d
50+
51+
# Substitute in php.ini values
52+
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" ${PHP_EXT_DIR}/zz-magento.ini
53+
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" ${PHP_EXT_DIR}/zz-magento.ini
54+
55+
# Add custom php.ini if it exists
56+
[ -f "/app/php.ini" ] && cp /app/php.ini ${PHP_EXT_DIR}/zzz-custom-php.ini
57+
58+
# Enable PHP extensions
5159
PHP_EXT_COM_ON=docker-php-ext-enable
5260

5361
[ -d ${PHP_EXT_DIR} ] && rm -f ${PHP_EXT_DIR}/docker-php-ext-*.ini
@@ -56,10 +64,6 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
5664
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
5765
fi
5866

59-
# Substitute in php.ini values
60-
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" /usr/local/etc/php/conf.d/zz-magento.ini
61-
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" /usr/local/etc/php/conf.d/zz-magento.ini
62-
6367
# Configure composer
6468
[ ! -z "${COMPOSER_GITHUB_TOKEN}" ] && \
6569
composer config --global github-oauth.github.com $COMPOSER_GITHUB_TOKEN

images/php/7.1-fpm/docker-entrypoint.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,16 @@ if [ "$ENABLE_SENDMAIL" == "true" ]; then
3535
/etc/init.d/sendmail start
3636
fi
3737

38-
# Enable PHP extensions
3938
PHP_EXT_DIR=/usr/local/etc/php/conf.d
39+
40+
# Substitute in php.ini values
41+
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" ${PHP_EXT_DIR}/zz-magento.ini
42+
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" ${PHP_EXT_DIR}/zz-magento.ini
43+
44+
# Add custom php.ini if it exists
45+
[ -f "/app/php.ini" ] && cp /app/php.ini ${PHP_EXT_DIR}/zzz-custom-php.ini
46+
47+
# Enable PHP extensions
4048
PHP_EXT_COM_ON=docker-php-ext-enable
4149

4250
[ -d ${PHP_EXT_DIR} ] && rm -f ${PHP_EXT_DIR}/docker-php-ext-*.ini
@@ -45,10 +53,6 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
4553
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
4654
fi
4755

48-
# Substitute in php.ini values
49-
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" /usr/local/etc/php/conf.d/zz-magento.ini
50-
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" /usr/local/etc/php/conf.d/zz-magento.ini
51-
5256
# Configure PHP-FPM
5357
[ ! -z "${MAGENTO_RUN_MODE}" ] && sed -i "s/!MAGENTO_RUN_MODE!/${MAGENTO_RUN_MODE}/" /usr/local/etc/php-fpm.conf
5458

images/php/7.2-cli/docker-entrypoint.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,16 @@ if [ "$ENABLE_SENDMAIL" == "true" ]; then
4646
/etc/init.d/sendmail start
4747
fi
4848

49-
# Enable PHP extensions
5049
PHP_EXT_DIR=/usr/local/etc/php/conf.d
50+
51+
# Substitute in php.ini values
52+
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" ${PHP_EXT_DIR}/zz-magento.ini
53+
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" ${PHP_EXT_DIR}/zz-magento.ini
54+
55+
# Add custom php.ini if it exists
56+
[ -f "/app/php.ini" ] && cp /app/php.ini ${PHP_EXT_DIR}/zzz-custom-php.ini
57+
58+
# Enable PHP extensions
5159
PHP_EXT_COM_ON=docker-php-ext-enable
5260

5361
[ -d ${PHP_EXT_DIR} ] && rm -f ${PHP_EXT_DIR}/docker-php-ext-*.ini
@@ -56,10 +64,6 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
5664
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
5765
fi
5866

59-
# Substitute in php.ini values
60-
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" /usr/local/etc/php/conf.d/zz-magento.ini
61-
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" /usr/local/etc/php/conf.d/zz-magento.ini
62-
6367
# Configure composer
6468
[ ! -z "${COMPOSER_GITHUB_TOKEN}" ] && \
6569
composer config --global github-oauth.github.com $COMPOSER_GITHUB_TOKEN

images/php/7.2-fpm/docker-entrypoint.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,16 @@ if [ "$ENABLE_SENDMAIL" == "true" ]; then
3535
/etc/init.d/sendmail start
3636
fi
3737

38-
# Enable PHP extensions
3938
PHP_EXT_DIR=/usr/local/etc/php/conf.d
39+
40+
# Substitute in php.ini values
41+
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" ${PHP_EXT_DIR}/zz-magento.ini
42+
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" ${PHP_EXT_DIR}/zz-magento.ini
43+
44+
# Add custom php.ini if it exists
45+
[ -f "/app/php.ini" ] && cp /app/php.ini ${PHP_EXT_DIR}/zzz-custom-php.ini
46+
47+
# Enable PHP extensions
4048
PHP_EXT_COM_ON=docker-php-ext-enable
4149

4250
[ -d ${PHP_EXT_DIR} ] && rm -f ${PHP_EXT_DIR}/docker-php-ext-*.ini
@@ -45,10 +53,6 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
4553
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
4654
fi
4755

48-
# Substitute in php.ini values
49-
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" /usr/local/etc/php/conf.d/zz-magento.ini
50-
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" /usr/local/etc/php/conf.d/zz-magento.ini
51-
5256
# Configure PHP-FPM
5357
[ ! -z "${MAGENTO_RUN_MODE}" ] && sed -i "s/!MAGENTO_RUN_MODE!/${MAGENTO_RUN_MODE}/" /usr/local/etc/php-fpm.conf
5458

images/php/7.3-cli/docker-entrypoint.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,17 @@ if [ "$ENABLE_SENDMAIL" == "true" ]; then
4646
/etc/init.d/sendmail start
4747
fi
4848

49-
# Enable PHP extensions
5049
PHP_EXT_DIR=/usr/local/etc/php/conf.d
50+
51+
# Substitute in php.ini values
52+
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" ${PHP_EXT_DIR}/zz-magento.ini
53+
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" ${PHP_EXT_DIR}/zz-magento.ini
54+
55+
# Add custom php.ini if it exists
56+
[ -f "/app/php.ini" ] && cp /app/php.ini ${PHP_EXT_DIR}/zzz-custom-php.ini
57+
58+
59+
# Enable PHP extensions
5160
PHP_EXT_COM_ON=docker-php-ext-enable
5261

5362
[ -d ${PHP_EXT_DIR} ] && rm -f ${PHP_EXT_DIR}/docker-php-ext-*.ini
@@ -56,10 +65,6 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
5665
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
5766
fi
5867

59-
# Substitute in php.ini values
60-
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" /usr/local/etc/php/conf.d/zz-magento.ini
61-
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" /usr/local/etc/php/conf.d/zz-magento.ini
62-
6368
# Configure composer
6469
[ ! -z "${COMPOSER_GITHUB_TOKEN}" ] && \
6570
composer config --global github-oauth.github.com $COMPOSER_GITHUB_TOKEN

images/php/7.3-fpm/docker-entrypoint.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,16 @@ if [ "$ENABLE_SENDMAIL" == "true" ]; then
3535
/etc/init.d/sendmail start
3636
fi
3737

38-
# Enable PHP extensions
3938
PHP_EXT_DIR=/usr/local/etc/php/conf.d
39+
40+
# Substitute in php.ini values
41+
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" ${PHP_EXT_DIR}/zz-magento.ini
42+
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" ${PHP_EXT_DIR}/zz-magento.ini
43+
44+
# Add custom php.ini if it exists
45+
[ -f "/app/php.ini" ] && cp /app/php.ini ${PHP_EXT_DIR}/zzz-custom-php.ini
46+
47+
# Enable PHP extensions
4048
PHP_EXT_COM_ON=docker-php-ext-enable
4149

4250
[ -d ${PHP_EXT_DIR} ] && rm -f ${PHP_EXT_DIR}/docker-php-ext-*.ini
@@ -45,10 +53,6 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
4553
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
4654
fi
4755

48-
# Substitute in php.ini values
49-
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" /usr/local/etc/php/conf.d/zz-magento.ini
50-
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" /usr/local/etc/php/conf.d/zz-magento.ini
51-
5256
# Configure PHP-FPM
5357
[ ! -z "${MAGENTO_RUN_MODE}" ] && sed -i "s/!MAGENTO_RUN_MODE!/${MAGENTO_RUN_MODE}/" /usr/local/etc/php-fpm.conf
5458

images/php/cli/docker-entrypoint.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,16 @@ if [ "$ENABLE_SENDMAIL" == "true" ]; then
4646
/etc/init.d/sendmail start
4747
fi
4848

49-
# Enable PHP extensions
5049
PHP_EXT_DIR=/usr/local/etc/php/conf.d
50+
51+
# Substitute in php.ini values
52+
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" ${PHP_EXT_DIR}/zz-magento.ini
53+
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" ${PHP_EXT_DIR}/zz-magento.ini
54+
55+
# Add custom php.ini if it exists
56+
[ -f "/app/php.ini" ] && cp /app/php.ini ${PHP_EXT_DIR}/zzz-custom-php.ini
57+
58+
# Enable PHP extensions
5159
PHP_EXT_COM_ON=docker-php-ext-enable
5260

5361
[ -d ${PHP_EXT_DIR} ] && rm -f ${PHP_EXT_DIR}/docker-php-ext-*.ini
@@ -56,9 +64,6 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
5664
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
5765
fi
5866

59-
# Substitute in php.ini values
60-
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" /usr/local/etc/php/conf.d/zz-magento.ini
61-
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" /usr/local/etc/php/conf.d/zz-magento.ini
6267

6368
# Configure composer
6469
[ ! -z "${COMPOSER_GITHUB_TOKEN}" ] && \

images/php/fpm/docker-entrypoint.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,16 @@ if [ "$ENABLE_SENDMAIL" == "true" ]; then
3535
/etc/init.d/sendmail start
3636
fi
3737

38-
# Enable PHP extensions
3938
PHP_EXT_DIR=/usr/local/etc/php/conf.d
39+
40+
# Substitute in php.ini values
41+
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" ${PHP_EXT_DIR}/zz-magento.ini
42+
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" ${PHP_EXT_DIR}/zz-magento.ini
43+
44+
# Add custom php.ini if it exists
45+
[ -f "/app/php.ini" ] && cp /app/php.ini ${PHP_EXT_DIR}/zzz-custom-php.ini
46+
47+
# Enable PHP extensions
4048
PHP_EXT_COM_ON=docker-php-ext-enable
4149

4250
[ -d ${PHP_EXT_DIR} ] && rm -f ${PHP_EXT_DIR}/docker-php-ext-*.ini
@@ -45,10 +53,6 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
4553
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
4654
fi
4755

48-
# Substitute in php.ini values
49-
[ ! -z "${PHP_MEMORY_LIMIT}" ] && sed -i "s/!PHP_MEMORY_LIMIT!/${PHP_MEMORY_LIMIT}/" /usr/local/etc/php/conf.d/zz-magento.ini
50-
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" /usr/local/etc/php/conf.d/zz-magento.ini
51-
5256
# Configure PHP-FPM
5357
[ ! -z "${MAGENTO_RUN_MODE}" ] && sed -i "s/!MAGENTO_RUN_MODE!/${MAGENTO_RUN_MODE}/" /usr/local/etc/php-fpm.conf
5458

0 commit comments

Comments
 (0)