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

已提問 1 年前檢視次數 671 次
2 個答案
1
已接受的答案

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

已回答 1 年前
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!

已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南