-
Notifications
You must be signed in to change notification settings - Fork 2
/
.lando.yml
56 lines (47 loc) · 1.83 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
# Change this name to something that makes sense for your project
name: contentacmsplatformsh
# Use the recipe appropriate for your application.
recipe: drupal8
# Configure the D8 recipe to match up closer to a vanilla platform.sh stack
config:
# Lando defaults to Apache. Switch to nginx to match Platform.sh.
via: nginx
# Set the webroot to match your .platform.app.yaml.
webroot: web
# Set this to match the version in your .platform.app.yaml.
php: 7.1
# Lando defaults to the latest MySQL release, but Platform.sh uses MariaDB.
# Specify the version to match what's in services.yaml.
database: mariadb:10.1
# The following additional build step will install the Platform CLI
# in the application container and auto-run `composer install`
services:
appserver:
run:
- "mkdir -p /var/www/.platformsh && mkdir -p /var/www/.platformsh/bin"
- "curl -fsSL -o /var/www/.platformsh/bin/platform https://github.com/platformsh/platformsh-cli/releases/download/v3.33.6/platform.phar"
- "chmod ug+x /var/www/.platformsh/bin/platform"
- "cd $LANDO_MOUNT && composer install"
overrides:
services:
environment:
BEHAT_PARAMS: '{"extensions" : {"Behat\\MinkExtension" : {"base_url" : "http://nginx/"}, "Drupal\\DrupalExtension" : {"drush" : { "root": "/app/web" }}}}'
# The following entry creates a `lando platform` command that will run
# any Platform CLI command from inside the container if desired.
tooling:
platform:
service: appserver
description: Run Platform CLI commands
cmd: /var/www/.platformsh/bin/platform
phplint:
service: appserver
cmd: /app/vendor/bin/phplint
phpcs:
service: appserver
cmd: /app/vendor/bin/phpcs
phpunit:
service: appserver
cmd: /app/vendor/bin/phpunit
behat:
service: appserver
cmd: /app/vendor/bin/behat