Skip to content

Commit c362817

Browse files
committed
Fix subset of PHP exts for testing
1 parent 9dea481 commit c362817

File tree

14 files changed

+297
-0
lines changed

14 files changed

+297
-0
lines changed

.ansible/group_vars/all/mods.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ extensions_enabled:
2121
- lzf
2222
- zstd
2323
- redis
24+
- zip
25+
- phar
2426

2527

2628
# The following specifies how modules are being built.
@@ -528,3 +530,61 @@ extensions_available:
528530
version: 2.2.7
529531
build_dep: []
530532
run_dep: []
533+
zip:
534+
disabled: []
535+
all:
536+
type: builtin
537+
configure: --with-zip
538+
build_dep: [libzip-dev]
539+
run_dep: [libzip4]
540+
7.3:
541+
type: builtin
542+
configure: --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip=/usr
543+
build_dep: [libzip-dev, zlib1g-dev]
544+
run_dep: [libzip4, zlib1g]
545+
7.2:
546+
type: builtin
547+
configure: --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip=/usr
548+
build_dep: [libzip-dev, zlib1g-dev]
549+
run_dep: [libzip4, zlib1g]
550+
7.1:
551+
type: builtin
552+
configure: --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip=/usr
553+
build_dep: [libzip-dev, zlib1g-dev]
554+
run_dep: [libzip4, zlib1g]
555+
7.0:
556+
type: builtin
557+
configure: --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip=/usr
558+
build_dep: [libzip-dev, zlib1g-dev]
559+
run_dep: [libzip4, zlib1g]
560+
5.6:
561+
type: builtin
562+
configure: --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip=/usr
563+
build_dep: [libzip-dev, zlib1g-dev]
564+
run_dep: [libzip4, zlib1g]
565+
5.5:
566+
type: builtin
567+
configure: --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr
568+
build_dep: [libzip-dev, zlib1g-dev]
569+
run_dep: [libzip2, zlib1g]
570+
5.4:
571+
type: builtin
572+
configure: --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr
573+
build_dep: [libzip-dev, zlib1g-dev]
574+
run_dep: [libzip2, zlib1g]
575+
5.3:
576+
type: builtin
577+
configure: --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr
578+
build_dep: [libzip-dev, zlib1g-dev]
579+
run_dep: [libzip2, zlib1g]
580+
5.2:
581+
type: builtin
582+
configure: --enable-zip
583+
build_dep: [libzip-dev]
584+
run_dep: [libzip2]
585+
phar:
586+
disabled: []
587+
already_avail: [5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2]
588+
5.2:
589+
type: pecl
590+
build_dep: [libssl-dev]

Dockerfiles/mods/Dockerfile-5.2

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@ RUN set -eux \
1717
libmysqlclient-dev \
1818
libpng-dev \
1919
libpq-dev \
20+
libssl-dev \
2021
libvpx-dev \
2122
libwebp-dev \
2223
libxpm-dev \
24+
libzip-dev \
2325
zlib1g-dev \
2426
# Build tools
2527
autoconf \
@@ -171,6 +173,28 @@ fi \
171173
&& true
172174

173175

176+
# -------------------- Installing PHP Extension: zip --------------------
177+
RUN set -eux \
178+
# Installation: Version specific
179+
# Type: Built-in extension
180+
# Custom: configure command
181+
&& docker-php-ext-configure zip --enable-zip \
182+
# Installation
183+
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \
184+
&& true
185+
186+
187+
# -------------------- Installing PHP Extension: phar --------------------
188+
RUN set -eux \
189+
# Installation: Version specific
190+
# Type: PECL extension
191+
# Default: Pecl command
192+
&& pecl install phar \
193+
# Enabling
194+
&& docker-php-ext-enable phar \
195+
&& true
196+
197+
174198

175199

176200
# Fix php.ini settings for enabled extensions
@@ -229,6 +253,7 @@ RUN set -eux \
229253
libvpx1 \
230254
libwebp5 \
231255
libxpm4 \
256+
libzip2 \
232257
ca-certificates \
233258
&& rm -rf /var/lib/apt/lists/* \
234259
\
@@ -290,6 +315,10 @@ RUN set -eux \
290315
&& php-fpm -m | grep -oiE '^pgsql$' \
291316
&& php -m | grep -oiE '^redis$' \
292317
&& php-fpm -m | grep -oiE '^redis$' \
318+
&& php -m | grep -oiE '^zip$' \
319+
&& php-fpm -m | grep -oiE '^zip$' \
320+
&& php -m | grep -oiE '^phar$' \
321+
&& php-fpm -m | grep -oiE '^phar$' \
293322
&& true
294323

295324

Dockerfiles/mods/Dockerfile-5.3

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ RUN set -eux \
2222
libvpx-dev \
2323
libwebp-dev \
2424
libxpm-dev \
25+
libzip-dev \
2526
zlib1g-dev \
2627
# Build tools
2728
autoconf \
@@ -192,6 +193,17 @@ fi \
192193
&& true
193194

194195

196+
# -------------------- Installing PHP Extension: zip --------------------
197+
RUN set -eux \
198+
# Installation: Version specific
199+
# Type: Built-in extension
200+
# Custom: configure command
201+
&& docker-php-ext-configure zip --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr \
202+
# Installation
203+
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \
204+
&& true
205+
206+
195207

196208

197209
# Fix php.ini settings for enabled extensions
@@ -250,6 +262,8 @@ RUN set -eux \
250262
libvpx1 \
251263
libwebp5 \
252264
libxpm4 \
265+
libzip2 \
266+
zlib1g \
253267
ca-certificates \
254268
&& rm -rf /var/lib/apt/lists/* \
255269
\
@@ -315,6 +329,10 @@ RUN set -eux \
315329
&& php-fpm -m | grep -oiE '^apcu$' \
316330
&& php -m | grep -oiE '^redis$' \
317331
&& php-fpm -m | grep -oiE '^redis$' \
332+
&& php -m | grep -oiE '^zip$' \
333+
&& php-fpm -m | grep -oiE '^zip$' \
334+
&& php -m | grep -oiE '^phar$' \
335+
&& php-fpm -m | grep -oiE '^phar$' \
318336
&& true
319337

320338

Dockerfiles/mods/Dockerfile-5.4

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ RUN set -eux \
2222
libvpx-dev \
2323
libwebp-dev \
2424
libxpm-dev \
25+
libzip-dev \
2526
zlib1g-dev \
2627
# Build tools
2728
autoconf \
@@ -192,6 +193,17 @@ fi \
192193
&& true
193194

194195

196+
# -------------------- Installing PHP Extension: zip --------------------
197+
RUN set -eux \
198+
# Installation: Version specific
199+
# Type: Built-in extension
200+
# Custom: configure command
201+
&& docker-php-ext-configure zip --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr \
202+
# Installation
203+
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \
204+
&& true
205+
206+
195207

196208

197209
# Fix php.ini settings for enabled extensions
@@ -250,6 +262,8 @@ RUN set -eux \
250262
libvpx1 \
251263
libwebp5 \
252264
libxpm4 \
265+
libzip2 \
266+
zlib1g \
253267
ca-certificates \
254268
&& rm -rf /var/lib/apt/lists/* \
255269
\
@@ -315,6 +329,10 @@ RUN set -eux \
315329
&& php-fpm -m | grep -oiE '^apcu$' \
316330
&& php -m | grep -oiE '^redis$' \
317331
&& php-fpm -m | grep -oiE '^redis$' \
332+
&& php -m | grep -oiE '^zip$' \
333+
&& php-fpm -m | grep -oiE '^zip$' \
334+
&& php -m | grep -oiE '^phar$' \
335+
&& php-fpm -m | grep -oiE '^phar$' \
318336
&& true
319337

320338

Dockerfiles/mods/Dockerfile-5.5

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ RUN set -eux \
2424
libvpx-dev \
2525
libwebp-dev \
2626
libxpm-dev \
27+
libzip-dev \
2728
zlib1g-dev \
2829
# Build tools
2930
autoconf \
@@ -216,6 +217,17 @@ fi \
216217
&& true
217218

218219

220+
# -------------------- Installing PHP Extension: zip --------------------
221+
RUN set -eux \
222+
# Installation: Version specific
223+
# Type: Built-in extension
224+
# Custom: configure command
225+
&& docker-php-ext-configure zip --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr \
226+
# Installation
227+
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \
228+
&& true
229+
230+
219231

220232

221233
# Fix php.ini settings for enabled extensions
@@ -276,6 +288,8 @@ RUN set -eux \
276288
libvpx1 \
277289
libwebp5 \
278290
libxpm4 \
291+
libzip2 \
292+
zlib1g \
279293
ca-certificates \
280294
&& rm -rf /var/lib/apt/lists/* \
281295
\
@@ -358,6 +372,10 @@ RUN set -eux \
358372
&& php-fpm -m | grep -oiE '^apcu$' \
359373
&& php -m | grep -oiE '^redis$' \
360374
&& php-fpm -m | grep -oiE '^redis$' \
375+
&& php -m | grep -oiE '^zip$' \
376+
&& php-fpm -m | grep -oiE '^zip$' \
377+
&& php -m | grep -oiE '^phar$' \
378+
&& php-fpm -m | grep -oiE '^phar$' \
361379
&& true
362380

363381

Dockerfiles/mods/Dockerfile-5.6

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ RUN set -eux \
2424
libvpx-dev \
2525
libwebp-dev \
2626
libxpm-dev \
27+
libzip-dev \
2728
zlib1g-dev \
2829
# Build tools
2930
autoconf \
@@ -211,6 +212,17 @@ fi \
211212
&& true
212213

213214

215+
# -------------------- Installing PHP Extension: zip --------------------
216+
RUN set -eux \
217+
# Installation: Version specific
218+
# Type: Built-in extension
219+
# Custom: configure command
220+
&& docker-php-ext-configure zip --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip=/usr \
221+
# Installation
222+
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \
223+
&& true
224+
225+
214226

215227

216228
# Fix php.ini settings for enabled extensions
@@ -271,6 +283,8 @@ RUN set -eux \
271283
libvpx4 \
272284
libwebp6 \
273285
libxpm4 \
286+
libzip4 \
287+
zlib1g \
274288
ca-certificates \
275289
&& rm -rf /var/lib/apt/lists/* \
276290
\
@@ -353,6 +367,10 @@ RUN set -eux \
353367
&& php-fpm -m | grep -oiE '^apcu$' \
354368
&& php -m | grep -oiE '^redis$' \
355369
&& php-fpm -m | grep -oiE '^redis$' \
370+
&& php -m | grep -oiE '^zip$' \
371+
&& php-fpm -m | grep -oiE '^zip$' \
372+
&& php -m | grep -oiE '^phar$' \
373+
&& php-fpm -m | grep -oiE '^phar$' \
356374
&& true
357375

358376

Dockerfiles/mods/Dockerfile-7.0

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ RUN set -eux \
2525
libvpx-dev \
2626
libwebp-dev \
2727
libxpm-dev \
28+
libzip-dev \
2829
libzstd-dev \
2930
zlib1g-dev \
3031
# Build tools
@@ -271,6 +272,17 @@ phpize \
271272
&& true
272273

273274

275+
# -------------------- Installing PHP Extension: zip --------------------
276+
RUN set -eux \
277+
# Installation: Version specific
278+
# Type: Built-in extension
279+
# Custom: configure command
280+
&& docker-php-ext-configure zip --enable-zip --with-zlib-dir=/usr --with-pcre-dir=/usr --with-libzip=/usr \
281+
# Installation
282+
&& docker-php-ext-install -j$(getconf _NPROCESSORS_ONLN) zip \
283+
&& true
284+
285+
274286

275287

276288
# Fix php.ini settings for enabled extensions
@@ -332,7 +344,9 @@ RUN set -eux \
332344
libvpx4 \
333345
libwebp6 \
334346
libxpm4 \
347+
libzip4 \
335348
libzstd1 \
349+
zlib1g \
336350
ca-certificates \
337351
&& rm -rf /var/lib/apt/lists/* \
338352
\
@@ -421,6 +435,10 @@ RUN set -eux \
421435
&& php-fpm -m | grep -oiE '^zstd$' \
422436
&& php -m | grep -oiE '^redis$' \
423437
&& php-fpm -m | grep -oiE '^redis$' \
438+
&& php -m | grep -oiE '^zip$' \
439+
&& php-fpm -m | grep -oiE '^zip$' \
440+
&& php -m | grep -oiE '^phar$' \
441+
&& php-fpm -m | grep -oiE '^phar$' \
424442
&& true
425443

426444

0 commit comments

Comments
 (0)