I have a webserver running on an host, and a docker image running on another one. I am trying to display the docker image output on a webpage, and I was wondering what would be the best way to:
-
Draw the console on the web page: very likely html/css and javascript, I had a look at xTerm.js which seems to be a good framework to draw and manage consoles on web pages.
-
Send the docker image output from its host to the webserver host, so I can display it on the user session webpage: I thought about using rabbitmq, storing each line/group of lines in a message, and it would expect an answer if the console needs interaction (which would mean publishing a reply message from the webserver and so on..) But it sounds overcomplex, and maybe something else easier such as direct SSH connection between the user page and the docker host might work, instead of using a message queue?
What do you think?
Thanks.
Aucun commentaire:
Enregistrer un commentaire