Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Linux client: how to access X11 display ?

Jean-Dominique GASCUEL February 20, 2019

I have a bamboo client, installed on linux, running some OpenGL test:
compilation is OK.
But when execution starts, everything crash. When trying to start the GUI, it requires access to the X11 display. Which is locked because the bamboo user does not own the display ...

So anyone have an idea how to allow display access from an application started by bamboo ?

Thanks

 

1 answer

0 votes
Steffen Opel _Utoolity_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 21, 2019

You need to run the X11 display server in a headless fashion, which is commonly achieved via the X virtual framebuffer (Xvfb).

Not 100% positive on this, but I think Xvfb is included on the stock Bamboo Elastic images (despite the lack of a preconfigured capability), either way none of this is properly documented. You can find resp. hints via Populating your EBS volume and BAM-16951, which should translate to custom Bamboo Elastic images and regular remote agent scenario conceptually.

Similarly, you should also be able to apply these Xvfb patterns to a custom Docker image for use with the Bamboo Docker runner or Bamboo Docker task, in case it isn't included in the default Bamboo Docker images already. You can find resp. hints via Gui tests on xvfb, initialisation and cleanup.

Sorry for not being more specific, hope it helps to get you on the way.

Anil Unnikrishnan April 18, 2020

Does this work on local agents as well? Or does it need to be remote?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events