Skip to content

Commit 69de002

Browse files
committed
#444 Add wunderio/ddev-drupal, update Adminer. Varnish, ES missing.
1 parent aa20730 commit 69de002

27 files changed

+405
-29
lines changed

.ddev/addon-metadata/adminer/manifest.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: adminer
22
repository: ddev/ddev-adminer
3-
version: v1.1.0
4-
install_date: "2025-03-12T09:43:10+02:00"
3+
version: v1.1.4
4+
install_date: "2025-05-04T08:53:02+03:00"
55
project_files:
66
- docker-compose.adminer.yaml
77
- docker-compose.adminer_norouter.yaml
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env bash
2+
3+
## Description: Synchronise local database with production.
4+
## Usage: syncdb
5+
## Example: "ddev syncdb"
6+
7+
8+
.ddev/wunderio/core/_run-scripts.sh tooling-syncdb.sh "$@"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
## Description: Runs GrumPHP commands.
4+
## Usage: grumphp
5+
## Example: "ddev grumphp"
6+
7+
/var/www/html/.ddev/wunderio/core/_run-scripts.sh tooling-grumphp.sh "$@"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
## Description: Runs PHPUnit commands.
4+
## Usage: phpunit
5+
## Example: "ddev phpunit"
6+
7+
/var/www/html/.ddev/wunderio/core/_run-scripts.sh tooling-phpunit.sh "$@"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
## Description: Runs drush pmu commands but also creates dummy module folder if it does not exist.
4+
## Usage: pmu
5+
## Example: "ddev pmu module1 module2 ..."
6+
7+
/var/www/html/.ddev/wunderio/core/_run-scripts.sh tooling-pmu.sh "$@"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
## Description: Regenerates fresh PHPUnit configuration.
4+
## Usage: regenerate-phpunit-config
5+
## Example: "ddev regenerate-phpunit-config"
6+
7+
/var/www/html/.ddev/wunderio/core/_run-scripts.sh tooling-regenerate-phpunit-config.sh
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
## Description: Runs yq commands (yq is a lightweight and portable command-line YAML processor).
4+
## Usage: yq
5+
## Example: "ddev yq"
6+
7+
yq "$@"

.ddev/config.wunderio.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
hooks:
2+
post-import-db:
3+
- exec: "/var/www/html/.ddev/wunderio/core/_run-scripts.sh hooks-db-post-import.sh"
4+
post-restore-snapshot:
5+
- exec: "/var/www/html/.ddev/wunderio/core/_run-scripts.sh hooks-db-post-import.sh"
6+
post-start:
7+
# Build hook workaround to run composer install on first start.
8+
# @todo We could potentially make this more like lando build hook by creating tmp files.
9+
- exec: "[ ! -d \"/var/www/html/vendor\" ] && /var/www/html/.ddev/wunderio/core/_run-scripts.sh hooks-web-post-start-once.sh || true"
10+
# Script to run on every start on the host.
11+
- exec-host: ".ddev/wunderio/core/_run-scripts.sh hooks-host-post-start.sh"
12+
# Script to run on every start.
13+
- exec: "/var/www/html/.ddev/wunderio/core/_run-scripts.sh hooks-web-post-start.sh"
14+
# Wunderio/ddev-drupal update check.
15+
- exec: "UPDATE_SCRIPT=\"/var/www/html/vendor/wunderio/ddev-drupal/scripts/update_check.sh\"; [ -f \"$UPDATE_SCRIPT\" ] && $UPDATE_SCRIPT || true"
16+
web_environment:
17+
# Both this project and wunderio/lando-drupal use the same file
18+
# at drush/sites/local.site.yml. To make sure that the local alias
19+
# is working, we need to set the same environment variables here.
20+
- LANDO_WEBROOT=$DDEV_COMPOSER_ROOT/$DDEV_DOCROOT
21+
# When Mutagen is enabled (which it is by default in DDEV v1.19+),
22+
# these directories are bind-mounted directly rather than synced via Mutagen
23+
# This improves performance for large file directories by bypassing Mutagen's
24+
# syncing.
25+
# The paths are relative to the project root.
26+
upload_dirs:
27+
# Configure database_dumps directory to be bind-mounted directly
28+
# instead of being synced via Mutagen for better performance
29+
- ../database_dumps

.ddev/config.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,25 +21,5 @@ web_environment:
2121
- DB_HOST=db
2222
- DRUSH_OPTIONS_URI=https://drupal-project.ddev.site
2323
- ENVIRONMENT_NAME=ddev
24-
- EXEC_GRUMPHP_COMMAND=ddev php
2524
- HASH_SALT=notsosecurehash
26-
- ELASTICSEARCH_HOST=elasticsearch
27-
- VARNISH_ADMIN_HOST=varnish
28-
- VARNISH_ADMIN_PORT=80
29-
- SMTP_ADDRESS=localhost:1025
30-
3125
corepack_enable: false
32-
hooks:
33-
post-start:
34-
- exec: "composer install"
35-
- exec: "npm ci"
36-
- exec-host: |
37-
# Run the Elasticsearch plugin setup script
38-
ddev exec -s elasticsearch /mnt/ddev_config/elasticsearch/elasticsearch-setup.sh
39-
40-
# Check for the restart marker file
41-
if [ -f .ddev/elasticsearch/restart_needed ]; then
42-
echo "Elasticsearch plugins installed. Restarting elasticsearch container..."
43-
docker restart ddev-${DDEV_SITENAME}-elasticsearch
44-
rm .ddev/elasticsearch/restart_needed
45-
fi

.ddev/docker-compose.adminer.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ services:
2222
- "ddev-global-cache:/mnt/ddev-global-cache"
2323
depends_on:
2424
- db
25+
command: ["php", "-S", "[::]:8080", "-t", "/var/www/html", "ddev-adminer.php"]
2526
configs:
26-
- source: adminer-index.php
27-
target: /var/www/html/index.php
27+
- source: ddev-adminer.php
28+
target: /var/www/html/ddev-adminer.php
29+
mode: "0444"
2830

2931
configs:
30-
adminer-index.php:
32+
ddev-adminer.php:
3133
content: |
3234
<?php
3335
if (!count($$_GET)) {
@@ -44,5 +46,5 @@ configs:
4446
'password' => $$_ENV['ADMINER_DEFAULT_PASSWORD'],
4547
];
4648
}
47-
include './adminer.php';
49+
include './index.php';
4850
?>

0 commit comments

Comments
 (0)