Docker: input from web UI user to Docker run Python interpreter -


I am trying to create a web application which automatically grants the Python code given by programming students. I have planned to interpret the code as a means of sandboxing in the Docker instance, but now I have a problem what if a student writes the input ("...") in his code? This will leave the python interpreter inside the dock waiting for additional input. If it does not end in a while, then the Doker container will be killed eventually, but I really want to offer Oppurtunity for the students to give input to their programs. I know that I can start a doc in interactive mode, but then the problem is:

How can I dock my web sites to know that the web UI user should be prompted for input ?

You might want to see this project if you have a real bash (or other shell, ipathon?) Sign Where they can quickly communicate with the convenience of their web browser.

There are several prefabricated dockfiles to go as an example:


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -