-
Notifications
You must be signed in to change notification settings - Fork 0
/
.lando.yml
69 lines (68 loc) · 2.7 KB
/
.lando.yml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: az-news-views
recipe: drupal9
config:
php: '8.1'
via: apache:2.4
webroot: web
database: mariadb:10.4
xdebug: false
services:
# Replaces default lando MariaDB image with arm64 (Apple M1) compatible one.
# TODO: remove database service overrides once lando is updated.
database:
type: compose
services:
image: mariadb:10.4
command: docker-entrypoint.sh mariadbd
restart: always
ports:
- '3306'
environment:
MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: 'true'
MARIADB_DATABASE: drupal9
MYSQL_DATABASE: drupal9
MARIADB_USER: drupal9
MARIADB_PASSWORD: drupal9
appserver:
overrides:
volumes:
# Don't share our host working directory as /app. We want /app empty for composer.
- /app
# Instead share our host working directory as a standalone package.
- .:/usr/local/az-news-views
build:
# Create a new quickstart project and use the az_news_views module as a non-packagist repository.
- git clone https://github.com/az-digital/az-quickstart-scaffolding.git /app
- composer config repositories.localdev path /usr/local/az-news-views && composer require --no-update az-digital/az_news_views:\*@dev
- composer install
tooling:
# Provide a command to install Drupal.
install:
service: appserver
cmd:
- /app/vendor/bin/drush --root=/app/web site:install
[email protected] --account-name=azadmin
--account-pass=azadmin
--db-url=mysql://drupal9:drupal9@database:3306/drupal9 -y --verbose
- /app/vendor/bin/drush --root=/app/web pm:install -y az_news_views az_demo devel
- /app/vendor/bin/drush --root=/app/web config:set -y az_cas.settings disable_login_form 0
- /app/vendor/bin/drush --root=/app/web cache:rebuild
# Provide Drush tooling to automatically know the Drupal root.
drush:
service: appserver
cmd: /app/vendor/bin/drush --root=/app/web
# Provide Drupal console tooling to automatically know the Drupal root.
drupal:
service: appserver
cmd: /app/vendor/bin/drupal --root=/app/web
# Provide phpcs tooling to check coding standards.
phpcs:
service: appserver
cmd: /app/vendor/bin/phpcs --colors --standard=web/profiles/custom/az_quickstart/phpcs.xml.dist web/modules/custom/az_news_views
# Provide PHPCBF tooling to fix coding standards.
phpcbf:
service: appserver
cmd: /app/vendor/bin/phpcbf --colors --standard=web/profiles/custom/az_quickstart/phpcs.xml.dist web/modules/custom/az_news_views
phpstan:
service: appserver
cmd: /app/vendor/bin/phpstan analyse --configuration web/profiles/custom/az_quickstart/phpstan.neon web/modules/custom/az_news_views