Skip to content

Commit e24b8ca

Browse files
Merge pull request #136 from magento/MAGECLOUD-5112
MAGECLOUD-5112: Add pcov php extension support into cloud docker
2 parents 3589a1b + bca4a99 commit e24b8ca

File tree

30 files changed

+324
-42
lines changed

30 files changed

+324
-42
lines changed

LICENSE_MIT.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Meanbee
3+
Copyright (c) Meanbee and Taylor Otwell
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"composer/composer": "^1.0",
1414
"composer/semver": "^1.0",
1515
"illuminate/config": "^5.5",
16-
"illuminate/filesystem": "^5.5",
1716
"symfony/config": "^4.4",
1817
"symfony/console": "^2.8||^4.0",
1918
"symfony/dependency-injection": "^3.3||^4.3",

config/services.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
</service>
1717
<service id="Magento\CloudDocker\Filesystem\DirectoryList" autowire="false"/>
1818
<service id="Magento\CloudDocker\Filesystem\FilesystemException" autowire="false"/>
19+
<service id="Magento\CloudDocker\Filesystem\FileNotFoundException" autowire="false"/>
1920
<service id="Magento\CloudDocker\Compose\DeveloperBuilder" shared="false"/>
2021
<service id="Magento\CloudDocker\Compose\ProductionBuilder" shared="false"/>
2122
<service id="Magento\CloudDocker\Compose\FunctionalBuilder" shared="false"/>
22-
<service id="Illuminate\Filesystem\Filesystem"/>
2323
<service id="Composer\Semver\VersionParser"/>
2424
<service id="Composer\Semver\Semver"/>
2525
</services>

images/php/7.1-cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ RUN pecl install -o -f \
115115
mailparse \
116116
msgpack \
117117
oauth \
118+
pcov \
118119
propro \
119120
raphf \
120121
redis \
@@ -160,6 +161,7 @@ RUN docker-php-ext-enable \
160161
mysqli \
161162
oauth \
162163
opcache \
164+
pcov \
163165
pdo_mysql \
164166
propro \
165167
pspell \
@@ -185,6 +187,7 @@ RUN docker-php-ext-enable \
185187

186188
ADD etc/php-cli.ini /usr/local/etc/php/conf.d/zz-magento.ini
187189
ADD etc/php-xdebug.ini /usr/local/etc/php/conf.d/zz-xdebug-settings.ini
190+
ADD etc/php-pcov.ini /usr/local/etc/php/conf.d/zz-pcov-settings.ini
188191
ADD etc/mail.ini /usr/local/etc/php/conf.d/zz-mail.ini
189192

190193
# Get composer installed to /usr/local/bin/composer

images/php/7.1-cli/etc/php-pcov.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pcov.enabled=1
2+
pcov.directory=/app

images/php/7.1-fpm/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ RUN pecl install -o -f \
9494
mailparse \
9595
msgpack \
9696
oauth \
97+
pcov \
9798
propro \
9899
raphf \
99100
redis \
@@ -139,6 +140,7 @@ RUN docker-php-ext-enable \
139140
mysqli \
140141
oauth \
141142
opcache \
143+
pcov \
142144
pdo_mysql \
143145
propro \
144146
pspell \
@@ -166,6 +168,7 @@ RUN groupadd -g 1000 www && useradd -g 1000 -u 1000 -d ${MAGENTO_ROOT} -s /bin/b
166168

167169
COPY etc/php-fpm.ini /usr/local/etc/php/conf.d/zz-magento.ini
168170
COPY etc/php-xdebug.ini /usr/local/etc/php/conf.d/zz-xdebug-settings.ini
171+
COPY etc/php-pcov.ini /usr/local/etc/php/conf.d/zz-pcov-settings.ini
169172
COPY etc/mail.ini /usr/local/etc/php/conf.d/zz-mail.ini
170173
COPY etc/php-fpm.conf /usr/local/etc/
171174

images/php/7.1-fpm/etc/php-pcov.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pcov.enabled=1
2+
pcov.directory=/app

images/php/7.2-cli/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ RUN pecl install -o -f \
113113
mailparse \
114114
msgpack \
115115
oauth \
116+
pcov \
116117
propro \
117118
raphf \
118119
redis \
@@ -160,6 +161,7 @@ RUN docker-php-ext-enable \
160161
mysqli \
161162
oauth \
162163
opcache \
164+
pcov \
163165
pdo_mysql \
164166
propro \
165167
pspell \
@@ -185,6 +187,7 @@ RUN docker-php-ext-enable \
185187

186188
ADD etc/php-cli.ini /usr/local/etc/php/conf.d/zz-magento.ini
187189
ADD etc/php-xdebug.ini /usr/local/etc/php/conf.d/zz-xdebug-settings.ini
190+
ADD etc/php-pcov.ini /usr/local/etc/php/conf.d/zz-pcov-settings.ini
188191
ADD etc/mail.ini /usr/local/etc/php/conf.d/zz-mail.ini
189192

190193
# Get composer installed to /usr/local/bin/composer

images/php/7.2-cli/etc/php-pcov.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
pcov.enabled=1
2+
pcov.directory=/app

images/php/7.2-fpm/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ RUN pecl install -o -f \
9292
mailparse \
9393
msgpack \
9494
oauth \
95+
pcov \
9596
propro \
9697
raphf \
9798
redis \
@@ -139,6 +140,7 @@ RUN docker-php-ext-enable \
139140
mysqli \
140141
oauth \
141142
opcache \
143+
pcov \
142144
pdo_mysql \
143145
propro \
144146
pspell \
@@ -166,6 +168,7 @@ RUN groupadd -g 1000 www && useradd -g 1000 -u 1000 -d ${MAGENTO_ROOT} -s /bin/b
166168

167169
COPY etc/php-fpm.ini /usr/local/etc/php/conf.d/zz-magento.ini
168170
COPY etc/php-xdebug.ini /usr/local/etc/php/conf.d/zz-xdebug-settings.ini
171+
COPY etc/php-pcov.ini /usr/local/etc/php/conf.d/zz-pcov-settings.ini
169172
COPY etc/mail.ini /usr/local/etc/php/conf.d/zz-mail.ini
170173
COPY etc/php-fpm.conf /usr/local/etc/
171174

0 commit comments

Comments
 (0)