-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent-drupal9-dependencies.yaml
53 lines (53 loc) · 1.67 KB
/
component-drupal9-dependencies.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: 'Install Drupal9 Dependencies'
description: "This component installs Drupal9's dependencies, including Composter."
schemaVersion: 1.0
parameters:
- ComposerVersion:
type: string
default: 2.1.11
description: Appropriate version of Composer to install.
phases:
- name: build
steps:
- name: InstallDrupal9Dependencies
action: ExecuteBash
onFailure: Abort
maxAttempts: 3
inputs:
commands:
- |
sudo apt-get install -y \
apache2 \
libgd3 \
mysql-client \
unzip \
php \
php-cli \
php-common \
php-curl \
php-dev \
php-fpm \
php-gd \
php-json \
php-soap \
php-xml \
php-zip \
php-mysql \
php-date \
php-mbstring \
php-intl \
zip
- name: InstallComposter
action: ExecuteBash
onFailure: Abort
maxAttempts: 3
inputs:
commands:
- |
cd /root
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
HOME=/root php composer-setup.php --version={{ ComposerVersion }} --filename=composer --install-dir=/usr/local/bin
php -r "unlink('composer-setup.php');"
chmod +x /usr/local/bin/composer
HOME=/root /usr/local/bin/composer --no-interaction global require zaporylie/composer-drupal-optimizations
mkdir -p /root/.config/composer