docker

anthony-galea 2019-05-14T13:43:51.000700Z

Does anyone have experience running builds on circleci inside a docker container with xvfb installed? Trying to run quil’s tests there and I’m running into an issue with the tests that use OpenGL: https://circleci.com/gh/anthonygalea/quil/3

actual: com.jogamp.opengl.GLException: Profiles [GL4bc, GL4, GL3bc, GL3, GLES3, GL2, GLES2] not available on device X11GraphicsDevice[type .x11, connection :99, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x68b62454, isOwner false, <579afb27, 3bc4bc2a>[count 0, qsz 0, owner <NULL>]]]
at com.jogamp.opengl.GLProfile.get (GLProfile.java:1039)
Using this image: circleci/clojure:lein-2.8.3-browsers which as I understand is using xvfb: https://github.com/CircleCI-Public/circleci-dockerfiles/blob/master/clojure/images/lein-2.8.1/browsers/Dockerfile#L65
$ docker run -it circleci/clojure:lein-2.8.3-browsers /bin/bash
$ sudo apt-get install mesa-utils
$ glxgears
Error: couldn't get an RGB, Double-buffered visual