-
Notifications
You must be signed in to change notification settings - Fork 256
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
Add mlbackend_python tests #113
base: main
Are you sure you want to change the base?
Conversation
base.yml
Outdated
mlbackendpython: | ||
image: "moodlehq/moodle-mlbackend-python:2.3.0-python3.7.5" | ||
ports: | ||
- "5000:5000" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @dmonllao,
- you've missed to add a new dependency to the
webserver
service - you don't need to expose the TCP port
5000
unless for other purposes: when you use a compose, a dedicated network interconnects all the services within that compose i.e.mlbackendpython:5000
should be already available without mapping the port on the docker host too
HTH,
Matteo
Many thanks for the review Matteo. I've updated the patch, removing the port and moving the definition of the new image to phpunit-external-services.yml |
I'm a little bit worried about how we are going to manage different versions here whenever they diverge between branches or when moodle-docker is used for versions < 3.8.0 ... uhm... |
any similar case in moodle-docker? (e.g. different pg/redis/ldap versions used for different moodle major branches). If MOODLE_DOCKER_WWWROOT must be set when the containers are initialised (https://github.com/moodlehq/moodle-docker/blob/master/bin/moodle-docker-compose#L4) we could modify bin/moodle-docker-compose to:
|
I'm not aware of any other image/external service needing such differentiation. If something... optionally, maybe selenium versions... but that's apart/exceptional. Yes... we should be able to do that via version.php parsing (if the env is not manually set). From the up shell & cmd scripts. And keep a table of branches and versions maintained somehow. Cannot imagine another way, right now... if anybody knows... please, share your wisdom here! Ciao :-) |
I've coded the approach proposed above in a separate branch: dmonllao@e1afc7f. I've set it as a separate branch because:
|
OT, for the records (spaming all you, beloved moodlers): Now the python mlbackend server images are being auto-built. More info @ moodlehq/moodle-docker-mlbackend-python#1 Ciao :-) |
Hi @stronk7,
I could try to do that but not in the very next days. HTH, |
Yeah, I'll be looking later this week. Need to close it (integration-wise). I bet it's going to be tricky (but haven't had time to look to the login implemented in unix shell yet). Will share here any progress (or lack of). |
No description provided.