Skip to content

Commit 115f12e

Browse files
authored
Merge pull request #114 from magento-commerce/MCLOUD-10406
MCLOUD-10406: update magento/magento-cloud-docker-php:8.2-cli-1.3.5 to stop clearing composer cache
2 parents b583dce + 11071ba commit 115f12e

File tree

16 files changed

+59
-26
lines changed

16 files changed

+59
-26
lines changed

images/php/7.2-cli/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ARG CRONTAB=""
2121
ENV COMPOSER_MEMORY_LIMIT -1
2222
ENV COMPOSER_ALLOW_SUPERUSER ${COMPOSER_ALLOW_SUPERUSER}
2323
ENV COMPOSER_HOME ${COMPOSER_HOME}
24+
ENV COMPOSER_CLEAR_CACHE false
2425
ENV PHP_MEMORY_LIMIT -1
2526
ENV PHP_VALIDATE_TIMESTAMPS 1
2627
ENV DEBUG false
@@ -82,9 +83,8 @@ RUN apt-get update \
8283
zip \
8384
&& rm -rf /var/lib/apt/lists/*
8485

85-
# Install PyYAML
86-
RUN pip3 install --upgrade setuptools \
87-
&& pip3 install pyyaml
86+
# Install Python packages
87+
RUN pip3 install --upgrade setuptools && pip3 install pyyaml
8888

8989
# Install Grunt
9090
RUN npm install -g grunt-cli

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
1717
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
1818
fi
1919

20+
# Clear composer cache if needed
21+
[ "$COMPOSER_CLEAR_CACHE" = "true" ] && \
22+
composer clearcache
23+
2024
# Configure composer
2125
[ ! -z "${COMPOSER_VERSION}" ] && \
2226
composer self-update $COMPOSER_VERSION

images/php/7.3-cli/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ARG CRONTAB=""
2121
ENV COMPOSER_MEMORY_LIMIT -1
2222
ENV COMPOSER_ALLOW_SUPERUSER ${COMPOSER_ALLOW_SUPERUSER}
2323
ENV COMPOSER_HOME ${COMPOSER_HOME}
24+
ENV COMPOSER_CLEAR_CACHE false
2425
ENV PHP_MEMORY_LIMIT -1
2526
ENV PHP_VALIDATE_TIMESTAMPS 1
2627
ENV DEBUG false
@@ -80,9 +81,8 @@ RUN apt-get update \
8081
zip \
8182
&& rm -rf /var/lib/apt/lists/*
8283

83-
# Install PyYAML
84-
RUN pip3 install --upgrade setuptools \
85-
&& pip3 install pyyaml
84+
# Install Python packages
85+
RUN pip3 install --upgrade setuptools && pip3 install pyyaml
8686

8787
# Install Grunt
8888
RUN npm install -g grunt-cli

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
1717
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
1818
fi
1919

20+
# Clear composer cache if needed
21+
[ "$COMPOSER_CLEAR_CACHE" = "true" ] && \
22+
composer clearcache
23+
2024
# Configure composer
2125
[ ! -z "${COMPOSER_VERSION}" ] && \
2226
composer self-update $COMPOSER_VERSION

images/php/7.4-cli/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ARG CRONTAB=""
2121
ENV COMPOSER_MEMORY_LIMIT -1
2222
ENV COMPOSER_ALLOW_SUPERUSER ${COMPOSER_ALLOW_SUPERUSER}
2323
ENV COMPOSER_HOME ${COMPOSER_HOME}
24+
ENV COMPOSER_CLEAR_CACHE false
2425
ENV PHP_MEMORY_LIMIT -1
2526
ENV PHP_VALIDATE_TIMESTAMPS 1
2627
ENV DEBUG false
@@ -76,9 +77,8 @@ RUN apt-get update \
7677
zip \
7778
&& rm -rf /var/lib/apt/lists/*
7879

79-
# Install PyYAML
80-
RUN pip3 install --upgrade setuptools \
81-
&& pip3 install pyyaml
80+
# Install Python packages
81+
RUN pip3 install --upgrade setuptools && pip3 install pyyaml
8282

8383
# Install Grunt
8484
RUN npm install -g grunt-cli

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
1717
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
1818
fi
1919

20+
# Clear composer cache if needed
21+
[ "$COMPOSER_CLEAR_CACHE" = "true" ] && \
22+
composer clearcache
23+
2024
# Configure composer
2125
[ ! -z "${COMPOSER_VERSION}" ] && \
22-
composer clearcache && \
2326
composer self-update $COMPOSER_VERSION
2427

2528
[ ! -z "${COMPOSER_GITHUB_TOKEN}" ] && \

images/php/8.0-cli/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ARG CRONTAB=""
2121
ENV COMPOSER_MEMORY_LIMIT -1
2222
ENV COMPOSER_ALLOW_SUPERUSER ${COMPOSER_ALLOW_SUPERUSER}
2323
ENV COMPOSER_HOME ${COMPOSER_HOME}
24+
ENV COMPOSER_CLEAR_CACHE false
2425
ENV PHP_MEMORY_LIMIT -1
2526
ENV PHP_VALIDATE_TIMESTAMPS 1
2627
ENV DEBUG false
@@ -73,9 +74,8 @@ RUN apt-get update \
7374
zip \
7475
&& rm -rf /var/lib/apt/lists/*
7576

76-
# Install PyYAML
77-
RUN pip3 install --upgrade setuptools \
78-
&& pip3 install pyyaml
77+
# Install Python packages
78+
RUN pip3 install --upgrade setuptools && pip3 install pyyaml
7979

8080
# Install Grunt
8181
RUN npm install -g grunt-cli

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
1717
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
1818
fi
1919

20+
# Clear composer cache if needed
21+
[ "$COMPOSER_CLEAR_CACHE" = "true" ] && \
22+
composer clearcache
23+
2024
# Configure composer
2125
[ ! -z "${COMPOSER_VERSION}" ] && \
22-
composer clearcache && \
2326
composer self-update $COMPOSER_VERSION
2427

2528
[ ! -z "${COMPOSER_GITHUB_TOKEN}" ] && \

images/php/8.1-cli/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ ARG CRONTAB=""
2121
ENV COMPOSER_MEMORY_LIMIT -1
2222
ENV COMPOSER_ALLOW_SUPERUSER ${COMPOSER_ALLOW_SUPERUSER}
2323
ENV COMPOSER_HOME ${COMPOSER_HOME}
24+
ENV COMPOSER_CLEAR_CACHE false
2425
ENV PHP_MEMORY_LIMIT -1
2526
ENV PHP_VALIDATE_TIMESTAMPS 1
2627
ENV DEBUG false
@@ -73,9 +74,8 @@ RUN apt-get update \
7374
zip \
7475
&& rm -rf /var/lib/apt/lists/*
7576

76-
# Install PyYAML
77-
RUN pip3 install --upgrade setuptools \
78-
&& pip3 install pyyaml
77+
# Install Python packages
78+
RUN pip3 install --upgrade setuptools && pip3 install pyyaml
7979

8080
# Install Grunt
8181
RUN npm install -g grunt-cli

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,12 @@ if [ -x "$(command -v ${PHP_EXT_COM_ON})" ] && [ ! -z "${PHP_EXTENSIONS}" ]; the
1717
${PHP_EXT_COM_ON} ${PHP_EXTENSIONS}
1818
fi
1919

20+
# Clear composer cache if needed
21+
[ "$COMPOSER_CLEAR_CACHE" = "true" ] && \
22+
composer clearcache
23+
2024
# Configure composer
2125
[ ! -z "${COMPOSER_VERSION}" ] && \
22-
composer clearcache && \
2326
composer self-update $COMPOSER_VERSION
2427

2528
[ ! -z "${COMPOSER_GITHUB_TOKEN}" ] && \

0 commit comments

Comments
 (0)