-
Notifications
You must be signed in to change notification settings - Fork 10
/
.lando.dist.yml
117 lines (117 loc) · 3.38 KB
/
.lando.dist.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
name: localgov
recipe: drupal10
config:
webroot: web
php: '8.1'
database: mariadb:10.6
proxy:
mailhog:
- mail.localgov.lndo.site
adminer:
- adminer.localgov.lndo.site
solr-sitewide:
- 'solr-sitewide.localgov.lndo.site:8983'
services:
appserver:
scanner:
retry: 5
xdebug: true
build_as_root:
# This disables Xdebug during build, but puts all dependencies in place
# ready for the tooling to enable Xdebug.
- rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload
overrides:
environment:
DRUSH_OPTIONS_ROOT: '/app/web'
DRUSH_OPTIONS_URI: 'https://localgov.lndo.site'
SIMPLETEST_BASE_URL: 'http://localgov.lndo.site'
SIMPLETEST_DB: 'mysql://database:database@database/database'
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", {"browserName": "chrome", "goog:chromeOptions": {"args": ["--disable-gpu","--headless", "--no-sandbox", "--disable-dev-shm-usage"]}}, "http://chromedriver:9515"]'
BROWSERTEST_OUTPUT_DIRECTORY: '/app/web/sites/simpletest/browser_output'
BROWSERTEST_OUTPUT_BASE_URL: 'http://localgov.lndo.site'
# Support debugging CLI with Xdebug.
PHP_IDE_CONFIG: "serverName=appserver"
XDEBUG_SESSION: "lando"
build:
- mkdir -p web/sites/simpletest/browser_output
database:
creds:
user: database
password: database
database: database
mailhog:
type: mailhog
hogfrom:
- appserver
portforward: true
adminer:
type: compose
services:
image: dehy/adminer
command: '/bin/s6-svscan /etc/services.d'
portforward: true
node:
type: 'node:18'
globals:
gulp-cli: latest
overrides:
ports:
- '3050:3050'
chromedriver:
type: compose
scanner: false
services:
image: drupalci/webdriver-chromedriver:production
ports:
- "9515:9515"
security_opt:
- seccomp:unconfined
command: chromedriver --verbose --allowed-ips= --allowed-origins=*
solr-sitewide:
type: solr:8
core: sitewide
config:
dir: .lando/solr/localgov_sitewide_solr
tooling:
composer:
service: appserver
cmd: /usr/local/bin/composer
sca:
service: appserver
cmd: 'bash -c "/app/vendor/bin/phpstan analyse -c /app/phpstan.neon /app/web/profiles/contrib/localgov* /app/web/modules/contrib/localgov* /app/web/themes/contrib/localgov*"'
drush:
service: appserver
cmd: '/app/vendor/bin/drush'
phpcs:
service: appserver
cmd: '/app/vendor/bin/phpcs -p'
phix:
service: appserver
cmd: '/app/vendor/bin/phpcbf'
phpstan:
service: appserver
cmd: '/app/vendor/bin/phpstan'
phpunit:
service: appserver
cmd: '/app/vendor/bin/phpunit --testdox'
xdebug-on:
service: appserver
description: Enable Xdebug for Apache.
cmd: rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && docker-php-ext-enable xdebug && /etc/init.d/apache2 reload && echo "Xdebug enabled"
user: root
xdebug-off:
service: appserver
description: Disable Xdebug for Apache.
cmd: rm -f /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload && echo "Xdebug disabled"
user: root
gulp:
service: node
node:
service: node
npm:
service: node
yarn:
service: node
update-solr-config:
service: appserver
cmd: /app/.lando/update-solr-config.sh