instrumentisto/flex-sdk-docker-image

Can't connect to X11 window server using ':99' as the value of the DISPLAY variable.

Closed this issue · 3 comments

Hello, when I try to run:
docker run --rm -it -v $(pwd):/app instrumentisto/flex-sdk gradle compile

I get;

Execution failed for task ':compileFlex'.
java.lang.Exception: mxmlc execution failed: Loading configuration file /flex-sdk/frameworks/flex-config.xmlError: Can't connect to X11 window server using ':99' as the value of the DISPLAY variable.

running docker run --rm -it -v $(pwd):/app instrumentisto/flex-sdk xvfb gradle compile

fixes the issue.

@s3rcan yeap. The image is not intended to run xvfb under-the-hood every time, because it's not required for every task, just for few of them. That's why you should specify xvfb explicitly in you command, if you need one. That is described in "How to use this image" section of README.

I wasn't running any test, I was only trying to build the project but without xvfb it wasn't letting me compile.

@s3rcan so I can suggest your build scenario requires xvfb somehow.