Streaming GUI Application from a Docker Container

0

We are trying to use ECS and docker to deploy our application that is rendering a window (VTK). The docker container should run on an EC2 instance (with GPU) with a NICE DCV server. What we now need to do is stream the application inside the docker container to the DCV client.

My Question now is: Can this be done?

The setup is as follows:

EC2 Instance with GPU:

  • DCV Server
  • X Server
  • Docker with Docker-Container that contains the Rendering Application

Our application renders its content on the display of the XServer. The display is forwarded from the host (https://gursimarsm.medium.com/run-gui-applications-in-a-docker-container-ca625bad4638). The DCV server now should somehow be able to see the rendered content and stream it to the client. How do we configure docker/DCV/XServer to achieve the desired result? Is this even possible?

We could deploy our application directly on the EC2 instance, but due to our predefined release pipeline this undesirable.

Thanks, Julian

gefragt vor einem Jahr671 Aufrufe
2 Antworten
1
Akzeptierte Antwort

Hi Julian,

we have developed a fully automatic script deploying DCV into a container with and without GPU on the docker host: https://www.ni-sp.com/nice-dcv-in-containers/.

Maybe it can give you some ideas how to realize your goal.

Best regards, Karsten @ NI SP

beantwortet vor einem Jahr
1

Awesome, thank you so much, that's exactly what we needed. I set it up on an Amazon Linux 2 g4dn.xlarge instance and seems to work fine. We'll have to heavily customize the startup script but that's a great starting point!

beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen