Closed rfay closed 4 years ago
From about #7 on I was using Windows 10 Home with Docker Desktop for Windows. Overall it seems everything is functional, but there are some touchup items to be done on docs and just a bit of code.
drupal/recommended-project template:
*docker-compose..yaml with wildcard characters**: Verify that the described failure case is resolved. (Create dir named ~/tmp/[Local]/j2 and try ddev config)
Check import-db help (target-db)
Apache Drupal update.php: Make sure update.php with Apache works as in #2083
Test NFS installer script on Windows with a username that has spaces in it, per #2093.
/Users/Randy Fay
- it worked fine.nssm stop nfsd && nssm remove nfsd
(and click the dialog box that comes up). Also rm ~/.ddev/nfs_exports.txt
Test ddev with bad internet, #1969
Test ddev launch -p for PHPMyAdmin and ddev launch -m for mailhog
ddev help launch
also worked. However, I did trick myself by first trying to use a project (d8composer) which had been created in WSL2, so the path was different, and it was unable to do anything useful. The problem of working on both sides of WSL2 will be a problem everywhere with it when it comes out.Test https versions of PHPMyAdmin and MailHog (see ddev describe)
ddev descrie
worked perfectly with PHPMyAdmin and MailHogReview ddev describe output for correctness and usefulness, especially with 3rd party services.
ddev describe
gave me correct links and useful links for https and http access to redis-commander from ddev-contrib,Verify new .ddev-docker-compose-base.yaml and .ddev-docker-compose-full.yaml files, creation, etc.
ddev start
, which created the .ddev/docker-compose.yaml. The project worked right. Then I upgraded again to v1.14.0-rc1 and did another ddev start
and the docker-compose.yaml was deleted and the correct new files were created and looked right.Test ddev xdebug command. No args (enables), enable and disable and status commands. Alternate versions "on" and "off".
ddev xdebug status
reported correct info.ddev xdebug enable
and disable are not listed in ddev help xdebug
Verify removal of APIVersion from .ddev/config.yaml. Verify that upgrade works ok, with or without ddev config being run. No complaints about version should be issued
Custom commands reported as "customcommand" to segment. Use segment debug tool, verify that all custom commands are reported as "customcommand".
ddev drush
and it came through live as "customcommand"Remove 3rd-party named volumes when ddev delete. Use a 3rd party service like solr that creates a volume.
ddev delete -Oy
and the volume was deleted.Remove -built image when doing ddev delete
ππΌ When testing the above I saw:
Removing image: drud/ddev-dbserver-mariadb-10.2:v1.13.0-junker99-built Removing image: drud/ddev-webserver:20200411_webimage_maint-junker99-built
nfs_mount_enabled global support: ddev global config --nfs-mount-enabled should enable NFS on all projects
nfs_mount_enabled and omit_containers in ~/.ddev/global_config.yaml should not leak into project .ddev/config.yaml. (PR and testing instructions #2165)
ddev config
never resulted in leaking the global values into the project config.ππΌ no_project_mount: true
worked fine. I even did the mutagen setup from issue using it on Windows. But... ππΌ I don't think this is documented anywhere at all.
Proposed Followups:
There was a fair bit of confusion among testers about the global ddev config global --nfs-mount-enabled
and the fact that it overrides local and how to tell if NFS is enabled.
ddev describe
to see status.ddev debug nfsmount
to actually check whether enabled on current project.ddev debug nfsmount
to show a final "OK" if it's OK.Naming of volume for deletion by ddev delete should be explicit in docs and ddev-contrib examples, etc.
[x] docker-compose.*.yaml with wildcard characters: Remove the error message as it should no longer be needed
[x] Consider having ddev launch -p
and -m use https version of PHPMyAdmin/MailHog.
[x] Improve AddHostsEntriesIfNeeded() to have some respect for IsInternetActive().
[x] List ddev xdebug enable
and disable
in ddev help xdebug
[x] Note deletion of third-party service volumes on ddev delete
, as we do with database.
[x] Add app.Start()
to the end of ddev composer create
to sort out confusion about when start is needed.
General docs updates required
Everything runs fine, but when i run the ddev composer remove drupal/core-project-message
command i get: [RuntimeException] Could not read ./composer.json file_get_contents(./composer.json): failed to open stream: No such file or directory
@crydotsnake is that on Windows? Using NFS? Can you verify that the composer.json does exist before you do that? If it doesn't exist, something's really bad. Does it exist in the container? ddev ssh
and ls -l /var/www/html/composer.json
No, MacOS. I only use MacOS.
Please verify that the composer.json exists. You cannot have done a successful ddev composer create
and have no composer.json I don't think.
Now i have the composer.json file, then i did something wrong.
Do i need to run those commands, or can i ignore them?.
ddev composer remove drupal/core-project-message
ddev composer require drush/drush
ddev start
ddev launch
Well, that's the recipe. If you want to test the whole recipe, you'll want to run them. The recipe does a composer create-project on Drupal8, then removes the unnecessary core-project-message, then adds drush (which most people need with Drupal) then start and look at the install. I usually go through the install process.
Okay, then i will do it!. BTW: the ddev launch
command is not showing in the ddev --help
command list.
ddev --version
show?ddev help
?ddev --version
shows ddev version v1.14.0-rc1
Yes
Yes it is there.
Please ls -lR $PWD/.ddev/commands/host
in the directory where "launch" doesn't show. I imagine that none of the ddev-added custom commands show, so for example the "mysql" command isn't there either, right?
It would be easier to have these conversations in the Drupal or TYPO3 slack channels, is that something you could do? It's just got a lot more interactivity. Info at https://ddev.readthedocs.io/en/stable/#support-and-user-contributed-documentation
Yes, sure!.
I will switch to the Gitter chat.
Loving 1.14 so far - I have a couple thoughts/questions:
ddev xdebug
only enables? Why not have it be a toggle?ddev describe
?ddev describe
output is all very nicely formatted except for the DB credentials section. Could this be formatted in a nicer, more tabular fashion?
MySQL/MariaDB Credentials
-------------------------
Username (root): root Password (root): root Username: db Password: db
host:port (internal): db:3306 host:port (external): 127.0.0.1:XXXXX
@andy-blum
ddev xdebug
is just shorthand for ddev xdebug on
or ddev xdebug enable
rc2 changes seem to test out OK.
ddev delete should show deletion of volumes #2188
Deleting database. Volume junker99-mariadb for project junker99 was deleted Deleting third-party persistent volume ddev-junker99_solr for service solr... Deleting third-party persistent volume ddev-junker99_postgres for service postgres... Deleting docker image drud/ddev-dbserver-mariadb-10.2:v1.13.0-junker99-built Deleting docker image drud/ddev-webserver:20200411_webimage_maint-junker99-built Project junker99 was deleted. Your code and configuration are unchanged.
ddev-created .ddev/.gitignore should be correct #2182 π the only problem is that other gitignores don't ignore themselves. We'll get that before long.
Create /etc/hosts entries if IsInternetActive() is false #2186
ddev composer create finishes with app.Start() making simpler quickstarts #2184 π this works really nicely. Should have done it ages ago. I noted it working correctly when doing #2
NFS Improvements #2178
Released, closing.
ddev v1.14 in in release preparation. v1.14.0-rc2 is the release candidate for testing and has installation instructions. Please report results in this issue or open new issues, depending on your judgement of their severity.
ddev config
)ddev launch -p
for PHPMyAdmin and**ddev launch -m**
for mailhog. Use the long form of the command. Seeddev help launch
. (Consider improving launching the https version of each of these if available)ddev describe
)ddev describe
output for correctness and usefulness, especially with 3rd party services.ddev xdebug
command. No args (enables),enable
anddisable
andstatus
commands. Alternate versions "on" and "off".ddev config
being run. No complaints about version should be issued.ddev delete
. Use a 3rd party service like solr that creates a volume.ddev delete
deletes it.ddev delete
: Afterddev delete
the web and db images named with -built should be removed fromdocker images
ddev global config --nfs-mount-enabled
should enable NFS on all projectsddev config
on a project.Additional items added in v1.14.0-rc2
Testing above revealed some rough spots, so in v1.14.0-rc2, test these items that were touched up:
ddev start
andddev delete -Oy
and verify that the output during deletion is appropriate and shows the act of deleting the volume.ddev start
.ddev start
should create hostnames in /etc/hosts instead of relying on DNS.ddev composer create
finishes with app.Start() making simpler quickstarts #2184ddev composer create
operation.ddev debug nfsmount
and see the success message at end and confirmation whether global or project nfs_mount_enabled is on.ddev help xdebug
shows "enable" and "disable"