Skip to content

Commit 52f1daa

Browse files
authored
MCLOUD-7183: Fix functional tests after composer 2.0 release (#10)
1 parent 147b7d9 commit 52f1daa

File tree

9 files changed

+17
-5
lines changed

9 files changed

+17
-5
lines changed

images/php/7.2-cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ ADD etc/mail.ini /usr/local/etc/php/conf.d/zz-mail.ini
210210
ADD etc/php-gnupg.ini /usr/local/etc/php/conf.d/gnupg.ini
211211

212212
# Get composer installed to /usr/local/bin/composer
213-
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
213+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --version=1.10.16 --filename=composer
214214

215215
ADD bin/* /usr/local/bin/
216216

images/php/7.2-cli/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ fi
6565

6666

6767
# Configure composer
68+
[ ! -z "${COMPOSER_VERSION}" ] && \
69+
composer self-update $COMPOSER_VERSION
70+
6871
[ ! -z "${COMPOSER_GITHUB_TOKEN}" ] && \
6972
composer config --global github-oauth.github.com $COMPOSER_GITHUB_TOKEN
7073

images/php/7.3-cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ ADD etc/mail.ini /usr/local/etc/php/conf.d/zz-mail.ini
206206
ADD etc/php-gnupg.ini /usr/local/etc/php/conf.d/gnupg.ini
207207

208208
# Get composer installed to /usr/local/bin/composer
209-
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
209+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --version=1.10.16 --filename=composer
210210

211211
ADD bin/* /usr/local/bin/
212212

images/php/7.3-cli/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ fi
6565

6666

6767
# Configure composer
68+
[ ! -z "${COMPOSER_VERSION}" ] && \
69+
composer self-update $COMPOSER_VERSION
70+
6871
[ ! -z "${COMPOSER_GITHUB_TOKEN}" ] && \
6972
composer config --global github-oauth.github.com $COMPOSER_GITHUB_TOKEN
7073

images/php/7.4-cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ ADD etc/mail.ini /usr/local/etc/php/conf.d/zz-mail.ini
185185
ADD etc/php-gnupg.ini /usr/local/etc/php/conf.d/gnupg.ini
186186

187187
# Get composer installed to /usr/local/bin/composer
188-
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
188+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --version=1.10.16 --filename=composer
189189

190190
ADD bin/* /usr/local/bin/
191191

images/php/7.4-cli/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ fi
6565

6666

6767
# Configure composer
68+
[ ! -z "${COMPOSER_VERSION}" ] && \
69+
composer self-update $COMPOSER_VERSION
70+
6871
[ ! -z "${COMPOSER_GITHUB_TOKEN}" ] && \
6972
composer config --global github-oauth.github.com $COMPOSER_GITHUB_TOKEN
7073

images/php/cli/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ ADD etc/mail.ini /usr/local/etc/php/conf.d/zz-mail.ini
5454
ADD etc/php-gnupg.ini /usr/local/etc/php/conf.d/gnupg.ini
5555

5656
# Get composer installed to /usr/local/bin/composer
57-
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
57+
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --version=1.10.16 --filename=composer
5858

5959
ADD bin/* /usr/local/bin/
6060

images/php/cli/docker-entrypoint.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ fi
6565

6666

6767
# Configure composer
68+
[ ! -z "${COMPOSER_VERSION}" ] && \
69+
composer self-update $COMPOSER_VERSION
70+
6871
[ ! -z "${COMPOSER_GITHUB_TOKEN}" ] && \
6972
composer config --global github-oauth.github.com $COMPOSER_GITHUB_TOKEN
7073

tests/functional/Codeception/MagentoDb.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function grabColumnsFromDatabase($table, $columns, array $criteria = [])
6565
*
6666
* @return string
6767
*/
68-
public function getExposedPort(string $dbKey = self::KEY_DB): string
68+
public function getExposedPort(string $dbKey = 'db'): string
6969
{
7070
$key = 'exposed_port';
7171
if (self::KEY_DB === $dbKey) {

0 commit comments

Comments
 (0)