Skip to content

fix: remove no-bind-mounts from tests and documentation - #23

Merged
stasadev merged 1 commit into
ddev:mainfrom
AkibaAT:20250422_akibaat_remove_no_bind_mounts
Apr 22, 2025
Merged

stasadev merged 1 commit into
ddev:mainfrom
AkibaAT:20250422_akibaat_remove_no_bind_mounts

Conversation

@AkibaAT

@AkibaAT AkibaAT commented Apr 22, 2025

Copy link
Copy Markdown
Contributor

The Issue

Tests in the GitHub Workflow, as well as the instructions for use on Gitlab.com, contain references to enabling --no-bind-mounts=true for DDEV. However, on Gitlab.com this isn't needed, and for the workflow it's easily solvable via a docker volume.

How This PR Solves The Issue

Remove the reference from the Gitlab.com docs
Add a Docker volume that is mounted to the DIND container, as well as the DDEV container, and updating the tests to use that volume.

Manual Testing Instructions

Run the GitHub tests workflow. PR run: https://github.com/AkibaAT/ddev-gitlab-ci/actions/runs/14601086994
Push a simple test project to Gitlab.com. PR run: https://gitlab.com/ddev-testing/ddev-ci-test/-/jobs/9774214049

Automated Testing Overview

Added volume in setup_suite.bash, mounted to /mnt/ddev-shared

Adapted existing tests:

  • Create and run a ddev project
    Moved workdir to /mnt/ddev-shared/ddev-test
    Removed ddev config global --no-bind-mounts=true
  • Run ddev debug test
    Moved workdir to /mnt/ddev-shared/ddev-test-debug
    Removed ddev config global --no-bind-mounts=true

Related Issue Link(s)

Release/Deployment Notes

none

@ochorocho

Copy link
Copy Markdown
Collaborator

🚀 LGTM. Thanks for fixing this.

@stasadev stasadev left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@stasadev
stasadev merged commit 63744f7 into ddev:main Apr 22, 2025
@AkibaAT
AkibaAT deleted the 20250422_akibaat_remove_no_bind_mounts branch April 22, 2025 21:31
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.

3 participants