First of all, apologies for any lack of information or poor structure in this question. This is my first post here - seems like you have a great community!
I am trying to set up a local development environment for an existing Moodle 3.9 codebase, moodledata and db. My local OS is macOS Catalina.
I am looking into several options and am flexible in terms of approach (although in the long term I prefer something like docker), but my lack of knowledge or other issues are getting in my way. These are the approaches I tried and the result:
1. https://hub.docker.com/r/bitnami/moodle - I get a vanilla site going - but cannot figure out how to use it with my moodle codebase, moodledata folder or db (where to include the paths?).
2. https://github.com/moodlehq/moodle-docker - I get a site going, with my moodle codebase using export MOODLE_DOCKER_WWWROOT=/path/to/moodle/code as per instructions - but no moodledata or db (where to include the paths?).
3. MAMP using Moodle4Mac 3.9 from here: https://download.moodle.org/macosx/ - When opening MAMP I get error message “MAMP.app” cannot be opened because the developer cannot be verified. Going into Catalina's security settings and allowing it, the next time I open the app I get the same message but for a different file. This continues ~40 times, after which the Apache server starts but not the mysql server. There seems to be some Catalina permissions issue with the app. I tried sudo spctl --master-disable but makes no difference, still get the message about non-verified developer.
Very grateful for guidance.