Skip to content

Commit 0ca8dc1

Browse files
authored
Merge pull request #23 from magento-commerce/develop
Release 1.2.1
2 parents 09872ff + 22fcd62 commit 0ca8dc1

File tree

77 files changed

+1937
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+1937
-77
lines changed

codeception.dist.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ modules:
2626
composer_magento_password: "%REPO_PASSWORD%"
2727
composer_github_token: "%GITHUB_TOKEN%"
2828
use_generated_images: false
29+
generated_images_namespace: "cloudft"
2930
use_cached_workdir: true
3031
version_generated_images: "%TRAVIS_BUILD_NUMBER%"
3132
printOutput: false

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "magento/magento-cloud-docker",
33
"description": "Magento Cloud Docker",
44
"type": "magento2-component",
5-
"version": "1.2.0",
5+
"version": "1.2.1",
66
"license": [
77
"OSL-3.0",
88
"AFL-3.0"

images/nginx/1.19/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
FROM nginx
1+
FROM nginx:1.19
22

33
ENV UPLOAD_MAX_FILESIZE 64M
44
ENV XDEBUG_HOST fpm_xdebug
55
ENV FPM_HOST fpm
66
ENV FPM_PORT 9000
77
ENV UPSTREAM_HOST web
8-
ENV UPSTREAM_PORT 80
8+
ENV UPSTREAM_PORT 8080
99
ENV MAGENTO_ROOT /app
1010
ENV MAGENTO_RUN_MODE production
1111
ENV MFTF_UTILS 0
1212
ENV DEBUG false
13+
ENV NGINX_WORKER_PROCESSES 1
14+
ENV NGINX_WORKER_CONNECTIONS 1024
1315

1416
COPY etc/nginx.conf /etc/nginx/
1517
COPY etc/vhost.conf /etc/nginx/conf.d/default.conf

images/nginx/1.19/docker-entrypoint.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ XDEBUG_UPSTREAM_FILE="/etc/nginx/conf.d/xdebug/upstream.conf"
1818
[ ! -z "${UPLOAD_MAX_FILESIZE}" ] && sed -i "s/!UPLOAD_MAX_FILESIZE!/${UPLOAD_MAX_FILESIZE}/" $VHOST_FILE
1919
[ ! -z "${WITH_XDEBUG}" ] && sed -i "s/!WITH_XDEBUG!/${WITH_XDEBUG}/" $VHOST_FILE
2020
[ "${WITH_XDEBUG}" == "1" ] && sed -i "s/#include_xdebug_upstream/include/" $NGINX_FILE
21+
[ ! -z "${NGINX_WORKER_PROCESSES}" ] && sed -i "s/!NGINX_WORKER_PROCESSES!/${NGINX_WORKER_PROCESSES}/" $NGINX_FILE
22+
[ ! -z "${NGINX_WORKER_CONNECTIONS}" ] && sed -i "s/!NGINX_WORKER_CONNECTIONS!/${NGINX_WORKER_CONNECTIONS}/" $NGINX_FILE
2123

2224
# Check if the nginx syntax is fine, then launch.
2325
nginx -t

images/nginx/1.19/etc/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
worker_processes 2;
1+
worker_processes !NGINX_WORKER_PROCESSES!;
22

33
error_log /var/log/nginx/error.log debug;
44
pid /var/run/nginx.pid;
55

66
events {
77
# this should be equal to value of "ulimit -n"
88
# reference: https://www.digitalocean.com/community/tutorials/how-to-optimize-nginx-configuration
9-
worker_connections 1048576;
9+
worker_connections !NGINX_WORKER_CONNECTIONS!;
1010
}
1111

1212
http {

images/php/7.2-cli/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ RUN curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire
134134
&& mkdir -p /tmp/blackfire \
135135
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
136136
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \
137-
&& ( echo extension=blackfire.so \
138-
&& echo blackfire.agent_socket=tcp://blackfire:8707 ) > $(php -i | grep "additional .ini" | awk '{print $9}')/blackfire.ini \
137+
&& echo blackfire.agent_socket=tcp://blackfire:8707 > $(php -i | grep "additional .ini" | awk '{print $9}')/blackfire.ini \
139138
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
140139
RUN rm -f /usr/local/etc/php/conf.d/*sodium.ini \
141140
&& rm -f /usr/local/lib/php/extensions/*/*sodium.so \

images/php/7.2-fpm/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,7 @@ RUN curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire
113113
&& mkdir -p /tmp/blackfire \
114114
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
115115
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \
116-
&& ( echo extension=blackfire.so \
117-
&& echo blackfire.agent_socket=tcp://blackfire:8707 ) > $(php -i | grep "additional .ini" | awk '{print $9}')/blackfire.ini \
116+
&& echo blackfire.agent_socket=tcp://blackfire:8707 > $(php -i | grep "additional .ini" | awk '{print $9}')/blackfire.ini \
118117
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
119118
RUN rm -f /usr/local/etc/php/conf.d/*sodium.ini \
120119
&& rm -f /usr/local/lib/php/extensions/*/*sodium.so \

images/php/7.2-fpm/fpm-healthcheck.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -eo pipefail
33

4-
fpm_response=$(curl -o /dev/null -s -w "%{http_code}\n" http://${WEB_HOST:-web}:${WEB_PORT:-80}/status)
4+
fpm_response=$(curl -o /dev/null -s -w "%{http_code}\n" http://${WEB_HOST:-web}:${WEB_PORT:-8080}/status)
55

66
if [ "$fpm_response" == "200" ]
77
then

images/php/7.3-cli/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,7 @@ RUN curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire
131131
&& mkdir -p /tmp/blackfire \
132132
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
133133
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \
134-
&& ( echo extension=blackfire.so \
135-
&& echo blackfire.agent_socket=tcp://blackfire:8707 ) > $(php -i | grep "additional .ini" | awk '{print $9}')/blackfire.ini \
134+
&& echo blackfire.agent_socket=tcp://blackfire:8707 > $(php -i | grep "additional .ini" | awk '{print $9}')/blackfire.ini \
136135
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
137136
RUN rm -f /usr/local/etc/php/conf.d/*sodium.ini \
138137
&& rm -f /usr/local/lib/php/extensions/*/*sodium.so \

images/php/7.3-fpm/Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ RUN curl -A "Docker" -o /tmp/blackfire-probe.tar.gz -D - -L -s https://blackfire
110110
&& mkdir -p /tmp/blackfire \
111111
&& tar zxpf /tmp/blackfire-probe.tar.gz -C /tmp/blackfire \
112112
&& mv /tmp/blackfire/blackfire-*.so $(php -r "echo ini_get ('extension_dir');")/blackfire.so \
113-
&& ( echo extension=blackfire.so \
114-
&& echo blackfire.agent_socket=tcp://blackfire:8707 ) > $(php -i | grep "additional .ini" | awk '{print $9}')/blackfire.ini \
113+
&& echo blackfire.agent_socket=tcp://blackfire:8707 > $(php -i | grep "additional .ini" | awk '{print $9}')/blackfire.ini \
115114
&& rm -rf /tmp/blackfire /tmp/blackfire-probe.tar.gz
116115
RUN rm -f /usr/local/etc/php/conf.d/*sodium.ini \
117116
&& rm -f /usr/local/lib/php/extensions/*/*sodium.so \

0 commit comments

Comments
 (0)