Hi,
created a moodle system based on a docker compose file (compare this one) and added the "jobeinabox" image as an addtional service:
docker_moodle-coderunner: container_name: docker_moodle-coderunner image: trampgeek/jobeinabox restart: always networks: - docker_moodlefault
Now, I run the whole docker-compose file in order to start all the different containers. Then I am able to do something like
# curl http://docker_moodle-coderunner/jobe/index.php/restapi/languages [["c","11.4.0"],["cpp","11.4.0"],["java","11.0.20.1"],["nodejs","12.22.9"],["octave","6.4.0"],["pascal","3.2.2"],["php","8.1.2"],["python3","3.10.12"]]#
inside some container which is not the coderunner container (e.g. PHP-App)I.e. The PHP-Container is able to communicate to the Jobe-Server.
Though, I've added the name of the jobe server inside the plugins configuration i.e.
docker_moodle-coderunner
I am not able to run a simple coderunner-question:
Notice: Undefined index: http_code in /var/www/html/question/type/coderunner/classes/jobesandbox.php on line 375
and
An error occurred while processing your responses (Error from the sandbox [jobesandbox]: Unexpected error while executing your code. The sandbox server may be down or overloaded. Perhaps try again shortly?). Click continue to return to the page you were on and try again.
Does anybody know how to setup coderunner in this special environment?
I want to use an INTERNAL docker network for the communication in order to restrict access to the jobe server to the single moodle system which is defined inside the docker compose file.
Thank you very much in advance!
Best,
Alex