Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Final config for use with DDEV v1.23.1, replaces #30, replaces #23 #31

Merged
merged 7 commits into from
May 23, 2024

Conversation

rfay
Copy link
Contributor

@rfay rfay commented May 1, 2024

@simesy gave me permission to push a replacement PR for his

This is exactly his #23 (before he pushed unrelated commits to his branch), rebased to current. #30 can be closed.

I will test this and make sure it can work at least as is.

Then if we can get it in I will try to make mariadb testing and drush install work.

This can be tested with

ddev get https://github.com/rfay/ddev-drupal-core-dev/tarball/20240501_simesy_restore

Copy link
Contributor Author

@rfay rfay left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I manually tested this and it's in the opinionated sqlite3 setup right now, works without mariadb (and doesn't accidentally use mariadb).

If you'd be willing to get this in @justafish I'll attempt to make drush and mariadb work before Drupalcon.

ARG TARGETPLATFORM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DDEV v1.23.1 will have sqlite3 3.45.1 (but only for Drupal 11). This is already in HEAD.

@rfay rfay mentioned this pull request May 1, 2024
@simesy
Copy link
Contributor

simesy commented May 2, 2024

Sorry that I disrupted the previous PR. Just confirming this PR has had a lot of eyeballs and should be pretty straightforward - good to see that sqlite won't be needed but i assume as it currently stands this won't be fully testable?

@rfay
Copy link
Contributor Author

rfay commented May 2, 2024

This is fully testable and has automated tests working. The test instructions are above.

rfay added a commit to rfay/ddev-drupal-core-dev that referenced this pull request May 2, 2024
This is part of justafish#31

Rebase will be required when that goes in.
@@ -23,7 +23,8 @@
<!-- Do not limit the amount of memory tests take to run. -->
<ini name="memory_limit" value="-1"/>
<env name="SIMPLETEST_BASE_URL" value="DRUPAL_CORE_DDEV_URL"/>
<env name="SIMPLETEST_DB" value="mysql://db:db@db/db"/>
<!-- <env name="SIMPLETEST_DB" value="mysql://db:db@db/db"/> -->
<env name="SIMPLETEST_DB" value="sqlite://localhost/sites/default/files/db.sqlite"/>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤔 do we really want this synced with mutagen and the like? What about storing in /tmp, or if it needs to be persistent in /home/<user>/...?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review.

This is the traditional place for the sqlite file, Drupal core has used it for years.

On a normal DDEV macOS system, it would not be relavent to mutagen, since it would be bind-mounted with sites/default/files. However, with the current strategy here, ddev drupal believes drupal is installed if sites/default/files exists. But now with drush in #33 we won't have that problem as much.

IMO we should just leave it alone for now since it's the traditional location and in #34 we end up. being able to use mariadb or other traditional database types.

I'll also be doing a followup that uses tmpfs for mounting the mariadb, which is related to your persistence questions.

(Note that /home does not persist by default in a ddev-webserver environment though, but there are other options)

@rfay
Copy link
Contributor Author

rfay commented May 13, 2024

A few days ago the location/value of the sqlite3 packages changed, invalidating our install.

However, DDEV v1.23.1 should be out this week, so as a result, rather than chasing this and duplicating effort, I've made this dependent on v1.23.1, so the tests likely won't pass. It can be updated when the new version comes out.

@rfay rfay changed the title Final config for use with DDEV v1.23.0, replaces #30, replaces #23 Final config for use with DDEV v1.23.1, replaces #30, replaces #23 May 18, 2024
@justafish
Copy link
Owner

Thanks!

@justafish justafish merged commit cd06f6c into justafish:main May 23, 2024
2 checks passed
rfay added a commit to rfay/ddev-drupal-core-dev that referenced this pull request Oct 2, 2024
This is part of justafish#31

Rebase will be required when that goes in.
joachim-n pushed a commit to joachim-n/ddev-drupal-core-dev that referenced this pull request Nov 1, 2024
This is part of justafish#31

Rebase will be required when that goes in.
joachim-n pushed a commit to joachim-n/ddev-drupal-core-dev that referenced this pull request Nov 1, 2024
This is part of justafish#31

Rebase will be required when that goes in.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants