-
Notifications
You must be signed in to change notification settings - Fork 13
/
.lando.yml
57 lines (53 loc) · 2.05 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
name: drupal8phpunit
# https://docs.devwithlando.io/tutorials/drupal8.html
recipe: drupal8
# Requires lando 3.0.0-rc2 or higher.
# You can put local (non-git) overrides in .lando.local.yml
# Add some default configuration for the recipe here. Which will be passed to all the services within the recipe.
# https://docs.devwithlando.io/recipes/drupal8.html
config:
# Set the php version.
php: 7.3
# Set the webroot dir.
webroot: web
# Enable xdebug using "lando xdebug-on" tooling defined below.
xdebug: false
# We can add additional services here or even override some configuration.
services:
appserver:
run:
- 'bash config/init.sh'
overrides:
environment:
# Enable PHPStorm XDebug with CLI.
PHP_IDE_CONFIG: "serverName=appserver"
# Set the Mink webdriver args.
MINK_DRIVER_ARGS_WEBDRIVER: '["chrome", null, "http://host.docker.internal:4444/wd/hub"]'
volumes:
# Fix linux docker host.docker.internal resolving.
- 'config/linux-hosts.sh:/scripts/linux-hosts.sh'
database:
# Add a static db port for easy bookmarking and access through SQL clients.
# Ideally you would set this in a .lando.local.yml.
portforward: 33006
# This will add some tools from the containers to the command line of your OS.
# https://docs.devwithlando.io/config/tooling.html
tooling:
phpunit:
service: appserver
description: "Run PHP Unit tests: lando phpunit"
cmd: "/app/web/vendor/bin/phpunit --debug --configuration /app/web/core/phpunit.xml --printer=\\Drupal\\Tests\\Listeners\\HtmlOutputPrinter"
drush:
cmd: "/app/web/vendor/bin/drush --root=/app/web --uri=http://drupal8phpunit.lndo.site"
drupal:
cmd: "/app/web/vendor/bin/drupal --root=/app/web"
xdebug-on:
service: appserver
description: Enable xdebug.
cmd: "docker-php-ext-enable xdebug && /etc/init.d/apache2 reload"
user: root
xdebug-off:
service: appserver
description: Disable xdebug.
cmd: "rm /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini && /etc/init.d/apache2 reload"
user: root