Skip to content

Commit 6ba4879

Browse files
authored
Merge pull request #191 from laminas/1.35.x-merge-up-into-2.0.x_0WCyvgvV
Merge release 1.35.1 into 2.0.x
2 parents 7a2f485 + 68a1fee commit 6ba4879

File tree

1 file changed

+16
-8
lines changed

1 file changed

+16
-8
lines changed

Dockerfile

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ RUN export OS_VERSION=$(cat /etc/os-release | grep VERSION_ID | cut -d '"' -f2)
132132
&& apt autoremove -y \
133133
&& apt clean
134134

135+
# Temporary fix for https://github.com/laminas/laminas-continuous-integration-action/issues/188
136+
RUN cp \
137+
/usr/share/libtool/build-aux/config.sub \
138+
/usr/share/libtool/build-aux/config.guess \
139+
/usr/share/libtool/build-aux/ltmain.sh \
140+
/usr/bin/shtool \
141+
/usr/lib/php/20230831/build
142+
135143
# Build/install static modules that do not have packages
136144
COPY mods-available /mods-available
137145
COPY mods-install /mods-install
@@ -167,21 +175,21 @@ COPY composer.json \
167175
composer.lock \
168176
/tools/
169177

170-
RUN cd /tools \
171-
# Install `ext-bcmath` as it seems to be a requirement for `roave/backward-compatibility-check`
172-
&& apt install -y php-bcmath php8.3-bcmath \
173-
&& composer install \
174-
--classmap-authoritative
175-
176178
# Set default PHP version based on the `composer.json` `config.platform.php` setting
177179
RUN export DEFAULT_PHP_VERSION=$(jq -r '.config.platform.php | sub("(?<minor>[0-9.]).99$"; "\(.minor)")' /tools/composer.json) \
178-
# Cleanup composer files from external tools folder
179-
&& rm /tools/composer.* \
180180
&& update-alternatives --set php /usr/bin/php$DEFAULT_PHP_VERSION \
181181
&& update-alternatives --set phpize /usr/bin/phpize$DEFAULT_PHP_VERSION \
182182
&& update-alternatives --set php-config /usr/bin/php-config$DEFAULT_PHP_VERSION \
183183
&& echo "DEFAULT_PHP_VERSION=${DEFAULT_PHP_VERSION}" >> /etc/environment
184184

185+
RUN cd /tools \
186+
# Install `ext-bcmath` as it seems to be a requirement for `roave/backward-compatibility-check`
187+
&& apt install -y php-bcmath \
188+
&& composer install \
189+
--classmap-authoritative \
190+
# Cleanup composer files from external tools folder
191+
&& rm /tools/composer.*
192+
185193
# Copy staabm/annotate-pull-request-from-checkstyle to external-tools stage
186194
RUN ln -s /tools/vendor/bin/cs2pr /usr/local/bin/cs2pr
187195

0 commit comments

Comments
 (0)