-
Notifications
You must be signed in to change notification settings - Fork 47
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
MDK ❤️ Moodle docker containers #157
Comments
Another thing to be thinking about with this - keeping it generic enough so that for real production Moodle installs which are using containers, mdk could hook in and use those production containers. |
I agree with all of it, except for:
I understand that by design MDK and Composer do things differently. Although MDK appears tied to a database engine, it isn't except for the What I'm trying to achieve is being to run MDK under any PHP version, simulatenously. This means that the database and moodledata remains the same, only the compiler changes. This seems to be possible in Docker if we assume that the database container instance is shared amongst them, just like you'd share a database server locally. The hard part is to tell MDK that when you're running I don't know if I expressed myself well, but I do agree that changes to MDK must be made, and I'm happy to see that happening. I'd just like to keep MDK a user-friendly tool, which works with minimal configuration, and where its behaviour is expected and understandable. |
It seems like you are resistant to changing the db environment, but want the php environment changable, but i'm not sure I understand why you think one should be 'set in stone' and the other not. |
I'm not. The DB environment is set in Moodle's Perhaps we have different needs, or perhaps mine are not a good idea. Surely there are many reasons why fiddling with multiple PHP, on the same database (perhaps even at the same time) is a terrible idea! Going back to containers, if we could find a way to keep the containers working with the host's config.php, then it'd already be nice. And I could find a way for me to run MDK in a container a bit like the environment you talked about. I'll have to think more about my requirements... |
Well, I think we can support both with the same set of images, but with the docker-compose situation what I was trying to do was make it as quick as possible to get a a testing environment going to support weird and whacky situations (e.g. you fix a SQL bug and want to do a quick test on oracle), and not worry about selenium and that kind of stuff.
One thought i've had is config.php becoming something like:
But I suspect that might cause mdk chaos. |
This is an issue when I want to try and discuss ideas for integrating https://github.com/danpoltawski/docker-moodle and mdk as closely as possible.
Let me start with a sort of 'ideal' vision of how I picture it working:
mdk environment db mssql
to switch to mssql ormdk environment php php71
to switch to php71To get us to that vision is tricky, especially with the existing way things are supported:
docker exec
call, but it's probably not sufficientAny thoughts?
1 Well, we might want to do this for developer convienenicence reasons, but conceptually not required.
The text was updated successfully, but these errors were encountered: