Open Enteee opened 5 years ago
You always can create a mount point in dobi that redicts to any files on the host. e.g. the X11 socket or an .Xauthority file.
mount=mount-tmp-x11-unix:
bind: /tmp/.X11-unix
path: /tmp/.X11-unix
Using this dobi job to execute qtcreator in a container image:
job=launch-qtcreator:
use: image-qtcreator-5.12.2
depends: [image-qtcreator-5.12.2]
privileged: true
mounts:
- mount-home-dir
- mount-tmp-x11-unix
- mount-dev
interactive: true
env:
- "DISPLAY={env.DISPLAY}"
- "LOCAL_USER_ID={user.uid}"
annotations:
description: "-> launch qt creator"
Under Linux we can containerize graphical applications by mounting the X socket inside the container. I normally achieve this starting the container with the following script:
It would be nice, if dobi could provide an option (
X-forward
) which does this. Obviously this would be a Linux/X.Org Server only thing.