8000 [TASK] Add DDEV configuration (#55) · GsActions/commit-message-checker@8014eb2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8014eb2

Browse files
authored
[TASK] Add DDEV configuration (#55)
1 parent f304963 commit 8014eb2

File tree

2 files changed

+211
-0
lines changed

2 files changed

+211
-0
lines changed

.ddev/commands/host/npm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
## Description: Run npm inside the web container in the root of the project (Use --cwd for another directory)
4+
## Usage: npm [flags] [args]
5+
## Example: "ddev npm install" or "ddev npm add learna" or "ddev npm --cwd web/core add learna"
6+
7+
ddev exec --raw bash -ic "npm $*"
8+
ddev mutagen sync 2>/dev/null

.ddev/config.yaml

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,203 @@
1+
name: commit-message-checker
2+
type: php
3+
docroot: ""
4+
php_version: "7.4"
5+
webserver_type: nginx-fpm
6+
router_http_port: "80"
7+
router_https_port: "443"
8+
xdebug_enabled: false
9+
additional_hostnames: []
10+
additional_fqdns: []
11+
database:
12+
type: mariadb
13+
version: "10.3"
14+
nfs_mount_enabled: false
15+
mutagen_enabled: false
16+
hooks:
17+
post-start:
18+
- exec: npm install
19+
omit_containers: [db, dba, ddev-ssh-agent]
20+
use_dns_when_possible: true
21+
composer_version: ""
22+
web_environment: []
23+
nodejs_version: "16"
24+
25+
# Key features of ddev's config.yaml:
26+
27+
# name: <projectname> # Name of the project, automatically provides
28+
# http://projectname.ddev.site and https://projectname.ddev.site
29+
30+
# type: <projecttype> # drupal6/7/8, backdrop, typo3, wordpress, php
31+
32+
# docroot: <relative_path> # Relative path to the directory containing index.php.
33+
34+
# php_version: "7.4" # PHP version to use, "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"
35+
36+
# You can explicitly specify the webimage but this
37+
# is not recommended, as the images are often closely tied to ddev's' behavior,
38+
# so this can break upgrades.
39+
40+
# webimage: <docker_image> # nginx/php docker image.
41+
42+
# database:
43+
# type: <dbtype> # mysql, mariadb
44+
# version: <version> # database version, like "10.3" or "8.0"
45+
# Note that mariadb_version or mysql_version from v1.18 and earlier
46+
# will automatically be converted to this notation with just a "ddev config --auto"
47+
48+
# router_http_port: <port> # Port to be used for http (defaults to port 80)
49+
# router_https_port: <port> # Port for https (defaults to 443)
50+
51+
# xdebug_enabled: false # Set to true to enable xdebug and "ddev start" or "ddev restart"
52+
# Note that for most people the commands
53+
# "ddev xdebug" to enable xdebug and "ddev xdebug off" to disable it work better,
54+
# as leaving xdebug enabled all the time is a big performance hit.
55+
56+
# xhprof_enabled: false # Set to true to enable xhprof and "ddev start" or "ddev restart"
57+
# Note that for most people the commands
58+
# "ddev xhprof" to enable xhprof and "ddev xhprof off" to disable it work better,
59+
# as leaving xhprof enabled all the time is a big performance hit.
60+
61+
# webserver_type: nginx-fpm # or apache-fpm
62+
63+
# timezone: Europe/Berlin
64+
# This is the timezone used in the containers and by PHP;
65+
# it can be set to any valid timezone,
66+
# see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
67+
# For example Europe/Dublin or MST7MDT
68+
69+
# composer_version: "2"
70+
# if composer_version:"2" it will use the most recent composer v2
71+
# It can also be set to "1", to get most recent composer v1
72+
# or "" for the default v2 created at release time.
73+
# It can be set to any existing specific composer version.
74+
# After first project 'ddev start' this will not be updated until it changes
75+
76+
# nodejs_version: "16"
77+
# change from the default system Node.js version to another supported version, like 12, 14, 17.
78+
# Note that you can use 'ddev nvm' or nvm inside the web container to provide nearly any
79+
# Node.js version, including v6, etc.
80+
81+
# additional_hostnames:
82+
# - somename
83+
# - someothername
84+
# would provide http and https URLs for "somename.ddev.site"
85+
# and "someothername.ddev.site".
86+
87+
# additional_fqdns:
88+
# - example.com
89+
# - sub1.example.com
90+
# would provide http and https URLs for "example.com" and "sub1.example.com"
91+
# Please take care with this because it can cause great confusion.
92+
93+
# upload_dir: custom/upload/dir
94+
# would set the destination path for ddev import-files to <docroot>/custom/upload/dir
95+
96+
# working_dir:
97+
# web: /var/www/html
98+
# db: /home
99+
# would set the default working directory for the web and db services.
100+
# These values specify the destination directory for ddev ssh and the
101+
# directory in which commands passed into ddev exec are run.
102+
103+
# omit_containers: [db, dba, ddev-ssh-agent]
104+
# Currently only these containers are supported. Some containers can also be
105+
# omitted globally in the ~/.ddev/global_config.yaml. Note that if you omit
106+
# the "db" container, several standard features of ddev that access the
107+
# database container will be unusable. In the global configuration it is also
108+
# possible to omit ddev-router, but not here.
109+
110+
# nfs_mount_enabled: false
111+
# Great performance improvement but requires host configuration first.
112+
# See https://ddev.readthedocs.io/en/stable/users/performance/#using-nfs-to-mount-the-project-into-the-container
113+
114+
# mutagen_enabled: false
115+
# Experimental performance improvement using mutagen asynchronous updates.
116+
# See https://ddev.readthedocs.io/en/latest/users/performance/#using-mutagen
117+
118+
# fail_on_hook_fail: False
119+
# Decide whether 'ddev start' should be interrupted by a failing hook
120+
121+
# host_https_port: "59002"
122+
# The host port binding for https can be explicitly specified. It is
123+
# dynamic unless otherwise specified.
124+
# This is not used by most people, most people use the *router* instead
125+
# of the localhost port.
126+
127+
# host_webserver_port: "59001"
128+
# The host port binding for the ddev-webserver can be explicitly specified. It is
129+
# dynamic unless otherwise specified.
130+
# This is not used by most people, most people use the *router* instead
131+
# of the localhost port.
132+
133+
# host_db_port: "59002"
134+
# The host port binding for the ddev-dbserver can be explicitly specified. It is dynamic
135+
# unless explicitly specified.
136+
137+
# phpmyadmin_port: "8036"
138+
# phpmyadmin_https_port: "8037"
139+
# The PHPMyAdmin ports can be changed from the default 8036 and 8037
140+
141+
# host_phpmyadmin_port: "8036"
142+
# The phpmyadmin (dba) port is not normally bound on the host at all, instead being routed
143+
# through ddev-router, but it can be specified and bound.
144+
145+
# mailhog_port: "8025"
146+
# mailhog_https_port: "8026"
147+
# The MailHog ports can be changed from the default 8025 and 8026
148+
149+
# host_mailhog_port: "8025"
150+
# The mailhog port is not normally bound on the host at all, instead being routed
151+
# through ddev-router, but it can be bound directly to localhost if specified here.
152+
153+
# webimage_extra_packages: [php7.4-tidy, php-bcmath]
154+
# Extra Debian packages that are needed in the webimage can be added here
155+
156+
# dbimage_extra_packages: [telnet,netcat]
157+
# Extra Debian packages that are needed in the dbimage can be added here
158+
159+
# use_dns_when_possible: true
160+
# If the host has internet access and the domain configured can
161+
# successfully be looked up, DNS will be used for hostname resolution
162+
# instead of editing /etc/hosts
163+
# Defaults to true
164+
165+
# project_tld: ddev.site
166+
# The top-level domain used for project URLs
167+
# The default "ddev.site" allows DNS lookup via a wildcard
168+
# If you prefer you can change this to "ddev.local" to preserve
169+
# pre-v1.9 behavior.
170+
171+
# ngrok_args: --subdomain mysite --auth username:pass
172+
# Provide extra flags to the "ngrok http" command, see
173+
# https://ngrok.com/docs#http or run "ngrok http -h"
174+
175+
# disable_settings_management: false
176+
# If true, ddev will not create CMS-specific settings files like
177+
# Drupal's settings.php/settings.ddev.php or TYPO3's AdditionalConfiguration.php
178+
# In this case the user must provide all such settings.
179+
180+
# You can inject environment variables into the web container with:
181+
# web_environment:
182+
# - SOMEENV=somevalue
183+
# - SOMEOTHERENV=someothervalue
184+
185+
# no_project_mount: false
186+
# (Experimental) If true, ddev will not mount the project into the web container;
187+
# the user is responsible for mounting it manually or via a script.
188+
# This is to enable experimentation with alternate file mounting strategies.
189+
# For advanced users only!
190+
191+
# bind_all_interfaces: false
192+
# If true, host ports will be bound on all network interfaces,
193+
# not just the localhost interface. This means that ports
194+
# will be available on the local network if the host firewall
195+
# allows it.
196+
197+
# Many ddev commands can be extended to run tasks before or after the
198+
# ddev command is executed, for example "post-start", "post-import-db",
199+
# "pre-composer", "post-composer"
200+
# See https://ddev.readthedocs.io/en/stable/users/extending-commands/ for more
201+
# information on the commands that can be extended and the tasks you can define
202+
# for them. Example:
203+
#hooks:

0 commit comments

Comments
 (0)
0