Skip to content

Commit 58cafb2

Browse files
committed
fix: update to latest ddev + drupal 10.1
1 parent 27c3c00 commit 58cafb2

File tree

9 files changed

+1770
-659
lines changed

9 files changed

+1770
-659
lines changed

.ddev/config.yaml

Lines changed: 67 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ additional_hostnames: []
1010
additional_fqdns: []
1111
database:
1212
type: mariadb
13-
version: "10.3"
13+
version: "10.4"
1414
nfs_mount_enabled: false
1515
mutagen_enabled: false
1616
use_dns_when_possible: true
17-
composer_version: ""
17+
composer_version: "2"
1818
web_environment: []
1919
nodejs_version: "16"
2020

@@ -27,7 +27,7 @@ nodejs_version: "16"
2727

2828
# docroot: <relative_path> # Relative path to the directory containing index.php.
2929

30-
# php_version: "7.4" # PHP version to use, "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1"
30+
# php_version: "7.4" # PHP version to use, "5.6", "7.0", "7.1", "7.2", "7.3", "7.4", "8.0", "8.1", "8.2"
3131

3232
# You can explicitly specify the webimage but this
3333
# is not recommended, as the images are often closely tied to ddev's' behavior,
@@ -68,14 +68,18 @@ nodejs_version: "16"
6868
# commands are executed.
6969

7070
# composer_version: "2"
71-
# if composer_version:"2" it will use the most recent composer v2
72-
# It can also be set to "1", to get most recent composer v1
73-
# or "" for the default v2 created at release time.
74-
# It can be set to any existing specific composer version.
75-
# After first project 'ddev start' this will not be updated until it changes
71+
# You can set it to "" or "2" (default) for Composer v2 or "1" for Composer v1
72+
# to use the latest major version available at the time your container is built.
73+
# It is also possible to use each other Composer version channel. This includes:
74+
# - 2.2 (latest Composer LTS version)
75+
# - stable
76+
# - preview
77+
# - snapshot
78+
# Alternatively, an explicit Composer version may be specified, for example "2.2.18".
79+
# To reinstall Composer after the image was built, run "ddev debug refresh".
7680

7781
# nodejs_version: "16"
78-
# change from the default system Node.js version to another supported version, like 12, 14, 17.
82+
# change from the default system Node.js version to another supported version, like 12, 14, 17, 18.
7983
# Note that you can use 'ddev nvm' or nvm inside the web container to provide nearly any
8084
# Node.js version, including v6, etc.
8185

@@ -93,6 +97,8 @@ nodejs_version: "16"
9397

9498
# upload_dir: custom/upload/dir
9599
# would set the destination path for ddev import-files to <docroot>/custom/upload/dir
100+
# When mutagen is enabled this path is bind-mounted so that all the files
101+
# in the upload_dir don't have to be synced into mutagen
96102

97103
# working_dir:
98104
# web: /var/www/html
@@ -110,11 +116,11 @@ nodejs_version: "16"
110116

111117
# nfs_mount_enabled: false
112118
# Great performance improvement but requires host configuration first.
113-
# See https://ddev.readthedocs.io/en/stable/users/performance/#using-nfs-to-mount-the-project-into-the-container
119+
# See https://ddev.readthedocs.io/en/latest/users/install/performance/#nfs
114120

115121
# mutagen_enabled: false
116-
# Experimental performance improvement using mutagen asynchronous updates.
117-
# See https://ddev.readthedocs.io/en/latest/users/performance/#using-mutagen
122+
# Performance improvement using mutagen asynchronous updates.
123+
# See https://ddev.readthedocs.io/en/latest/users/install/performance/#mutagen
118124

119125
# fail_on_hook_fail: False
120126
# Decide whether 'ddev start' should be interrupted by a failing hook
@@ -169,7 +175,7 @@ nodejs_version: "16"
169175
# If you prefer you can change this to "ddev.local" to preserve
170176
# pre-v1.9 behavior.
171177

172-
# ngrok_args: --subdomain mysite --auth username:pass
178+
# ngrok_args: --basic-auth username:pass1234
173179
# Provide extra flags to the "ngrok http" command, see
174180
# https://ngrok.com/docs#http or run "ngrok http -h"
175181

@@ -195,10 +201,57 @@ nodejs_version: "16"
195201
# will be available on the local network if the host firewall
196202
# allows it.
197203

204+
# default_container_timeout: 120
205+
# The default time that ddev waits for all containers to become ready can be increased from
206+
# the default 120. This helps in importing huge databases, for example.
207+
208+
#web_extra_exposed_ports:
209+
#- name: nodejs
210+
# container_port: 3000
211+
# http_port: 2999
212+
# https_port: 3000
213+
#- name: something
214+
# container_port: 4000
215+
# https_port: 4000
216+
# http_port: 3999
217+
# Allows a set of extra ports to be exposed via ddev-router
218+
# The port behavior on the ddev-webserver must be arranged separately, for example
219+
# using web_extra_daemons.
220+
# For example, with a web app on port 3000 inside the container, this config would
221+
# expose that web app on https://<project>.ddev.site:9999 and http://<project>.ddev.site:9998
222+
# web_extra_exposed_ports:
223+
# - container_port: 3000
224+
# http_port: 9998
225+
# https_port: 9999
226+
227+
#web_extra_daemons:
228+
#- name: "http-1"
229+
# command: "/var/www/html/node_modules/.bin/http-server -p 3000"
230+
# directory: /var/www/html
231+
#- name: "http-2"
232+
# command: "/var/www/html/node_modules/.bin/http-server /var/www/html/sub -p 3000"
233+
# directory: /var/www/html
234+
235+
# override_config: false
236+
# By default, config.*.yaml files are *merged* into the configuration
237+
# But this means that some things can't be overridden
238+
# For example, if you have 'nfs_mount_enabled: true'' you can't override it with a merge
239+
# and you can't erase existing hooks or all environment variables.
240+
# However, with "override_config: true" in a particular config.*.yaml file,
241+
# 'nfs_mount_enabled: false' can override the existing values, and
242+
# hooks:
243+
# post-start: []
244+
# or
245+
# web_environment: []
246+
# or
247+
# additional_hostnames: []
248+
# can have their intended affect. 'override_config' affects only behavior of the
249+
# config.*.yaml file it exists in.
250+
198251
# Many ddev commands can be extended to run tasks before or after the
199252
# ddev command is executed, for example "post-start", "post-import-db",
200253
# "pre-composer", "post-composer"
201-
# See https://ddev.readthedocs.io/en/stable/users/extending-commands/ for more
254+
# See https://ddev.readthedocs.io/en/stable/users/extend/custom-commands/ for more
202255
# information on the commands that can be extended and the tasks you can define
203256
# for them. Example:
204257
#hooks:

.gitpod.yml

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
image: drupalpod/drupalpod-gitpod-base:20221216
1+
image: drupalpod/drupalpod-gitpod-base:20230922
22

33
# ddev and composer are running as part of the prebuild
44
# when starting a workspace all docker images are ready
@@ -53,22 +53,3 @@ ports:
5353
# projector port
5454
- port: 9999
5555
onOpen: open-browser
56-
57-
github:
58-
prebuilds:
59-
# enable for the master/default branch (defaults to true)
60-
master: true
61-
# enable for all branches in this repo (defaults to false)
62-
branches: true
63-
# enable for pull requests coming from this repo (defaults to true)
64-
pullRequests: true
65-
# enable for pull requests coming from forks (defaults to false)
66-
pullRequestsFromForks: true
67-
# add a check to pull requests (defaults to true)
68-
addCheck: true
69-
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
70-
addComment: false
71-
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
72-
addBadge: true
73-
# add a label once the prebuild is ready to pull requests (defaults to false)
74-
addLabel: true

composer.json

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "drupal/recommended-project",
3-
"description": "Project template for Drupal 9 projects with a relocated document root",
3+
"description": "Project template for Drupal projects with a relocated document root",
44
"type": "project",
55
"license": "GPL-2.0-or-later",
66
"homepage": "https://www.drupal.org/project/drupal",
@@ -15,24 +15,27 @@
1515
}
1616
],
1717
"require": {
18-
"composer/installers": "^1.9",
19-
"drupal/core-composer-scaffold": "^10",
20-
"drupal/core-project-message": "^10",
21-
"drupal/core-recommended": "^10",
22-
"drush/drush": "^11"
18+
"composer/installers": "^2.0",
19+
"drupal/admin_toolbar": "^3.4",
20+
"drupal/core-composer-scaffold": "^10.1",
21+
"drupal/core-project-message": "^10.1",
22+
"drupal/core-recommended": "^10.1",
23+
"drush/drush": "^12.3"
2324
},
2425
"conflict": {
2526
"drupal/drupal": "*"
2627
},
2728
"minimum-stability": "dev",
2829
"prefer-stable": true,
2930
"config": {
30-
"sort-packages": true,
3131
"allow-plugins": {
3232
"composer/installers": true,
3333
"drupal/core-composer-scaffold": true,
34-
"drupal/core-project-message": true
35-
}
34+
"drupal/core-project-message": true,
35+
"phpstan/extension-installer": true,
36+
"dealerdirect/phpcodesniffer-composer-installer": true
37+
},
38+
"sort-packages": true
3639
},
3740
"extra": {
3841
"drupal-scaffold": {
@@ -62,6 +65,9 @@
6265
"web/modules/custom/{$name}": [
6366
"type:drupal-custom-module"
6467
],
68+
"web/profiles/custom/{$name}": [
69+
"type:drupal-custom-profile"
70+
],
6571
"web/themes/custom/{$name}": [
6672
"type:drupal-custom-theme"
6773
]
@@ -78,7 +84,7 @@
7884
"<bg=blue;fg=white> </>",
7985
"",
8086
"<bg=yellow;fg=black>Next steps</>:",
81-
" * Install the site: https://www.drupal.org/docs/8/install",
87+
" * Install the site: https://www.drupal.org/docs/installing-drupal",
8288
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
8389
" * Get support: https://www.drupal.org/support",
8490
" * Get involved with the Drupal community:",

0 commit comments

Comments
 (0)