Skip to content

Commit f740f73

Browse files
committed
Composer2 can be installed again in our images
1 parent 82b8686 commit f740f73

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

.github/jobs/baseinstall.sh

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ sudo apt update
2626
section_end
2727

2828
section_start "Install needed packages"
29-
sudo apt install -y acl zip unzip nginx php php-fpm php-gd \
29+
sudo apt install -y acl zip unzip nginx composer php php-fpm php-gd \
3030
php-cli php-intl php-mbstring php-mysql php-curl php-json \
3131
php-xml php-zip ntp make sudo debootstrap \
3232
libcgroup-dev lsof php-cli php-curl php-json php-xml \
@@ -39,13 +39,6 @@ section_end
3939
PHPVERSION=$(php -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION."\n";')
4040
export PHPVERSION
4141

42-
section_start "Install composer"
43-
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
44-
HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
45-
php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
46-
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
47-
section_end
48-
4942
section_start "Run composer"
5043
export APP_ENV="dev"
5144
composer install --no-scripts

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,14 @@ jobs:
4141
if: ${{ contains(env.COMPILED, matrix.language) }}
4242
run: |
4343
sudo apt update
44-
sudo apt install -y acl zip unzip apache2 php php-fpm php-gd \
44+
sudo apt install -y acl zip unzip apache2 composer php php-fpm php-gd \
4545
php-cli php-intl php-mbstring php-mysql php-curl php-json \
4646
php-xml php-zip ntp make sudo debootstrap \
4747
libcgroup-dev lsof php-cli php-curl php-json php-xml \
4848
php-zip procps gcc g++ default-jre-headless \
4949
default-jdk-headless ghc fp-compiler autoconf automake bats \
5050
python3-sphinx python3-sphinx-rtd-theme rst2pdf fontconfig \
5151
python3-yaml latexmk
52-
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
53-
HASH="$(wget -q -O - https://composer.github.io/installer.sig)"
54-
php -r "if (hash_file('SHA384', 'composer-setup.php') === '$HASH') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
55-
sudo php composer-setup.php --install-dir=/usr/local/bin --filename=composer
5652
5753
- name: Install composer files
5854
if: ${{ contains(env.COMPILED, matrix.language) }}

0 commit comments

Comments
 (0)