@@ -228,6 +228,14 @@ RUN export OS_VERSION=$(cat /etc/os-release | grep VERSION_ID | cut -d '"' -f2)
228
228
&& apt autoremove -y \
229
229
&& apt clean
230
230
231
+ # Temporary fix for https://github.com/laminas/laminas-continuous-integration-action/issues/188
232
+ RUN cp \
233
+ /usr/share/libtool/build-aux/config.sub \
234
+ /usr/share/libtool/build-aux/config.guess \
235
+ /usr/share/libtool/build-aux/ltmain.sh \
236
+ /usr/bin/shtool \
237
+ /usr/lib/php/20230831/build
238
+
231
239
# Build/install static modules that do not have packages
232
240
COPY mods-available /mods-available
233
241
COPY mods-install /mods-install
@@ -263,22 +271,22 @@ COPY composer.json \
263
271
composer.lock \
264
272
/tools/
265
273
266
- RUN cd /tools \
267
- # Install `ext-bcmath` as it seems to be a requirement for `roave/backward-compatibility-check`
268
- && apt install -y php-bcmath php8.3-bcmath \
269
- && composer install \
270
- --classmap-authoritative
271
-
272
274
# Set default PHP version based on the `composer.json` `config.platform.php` setting
273
275
RUN export DEFAULT_PHP_VERSION=$(jq -r '.config.platform.php | sub("(?<minor>[0-9.]).99$"; "\( .minor)")' /tools/composer.json) \
274
- # Cleanup composer files from external tools folder
275
- && rm /tools/composer.* \
276
276
&& update-alternatives --set php /usr/bin/php$DEFAULT_PHP_VERSION \
277
277
&& update-alternatives --set phpize /usr/bin/phpize$DEFAULT_PHP_VERSION \
278
278
&& update-alternatives --set php-config /usr/bin/php-config$DEFAULT_PHP_VERSION \
279
279
&& update-alternatives --set phpdbg /usr/bin/phpdbg$DEFAULT_PHP_VERSION \
280
280
&& echo "DEFAULT_PHP_VERSION=${DEFAULT_PHP_VERSION}" >> /etc/environment
281
281
282
+ RUN cd /tools \
283
+ # Install `ext-bcmath` as it seems to be a requirement for `roave/backward-compatibility-check`
284
+ && apt install -y php-bcmath \
285
+ && composer install \
286
+ --classmap-authoritative \
287
+ # Cleanup composer files from external tools folder
288
+ && rm /tools/composer.*
289
+
282
290
# Copy staabm/annotate-pull-request-from-checkstyle to external-tools stage
283
291
RUN ln -s /tools/vendor/bin/cs2pr /usr/local/bin/cs2pr
284
292
0 commit comments