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.
Hi @dmonllao,
- you've missed to add a new dependency to the
webserverservice - you don't need to expose the TCP port
5000unless for other purposes: when you use a compose, a dedicated network interconnects all the services within that compose i.e.mlbackendpython:5000should 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.