Greetings,
I believe that answers to the questions would be beneficial to many:
Problem1:
Docker Universe â does not provide the same environment as
docker run â within the container.
Problem2: Xvfb works fine within a
docker run â container but does not work when running as a
Docker Universe â job.
Question: is there a way to make
Xvbf â work on HTcondor?
Xvfb provides a virtual DISPLAY for X11 GUI.
I am trying to use a
perl â script that requires
Chart::Graph::Xmgrace
If I use
docker run â on my Mac everything works fine,
so the problem is definitely with
HTcondor â way of using a Docker â container and just related to X11 and DISPLAY as judged by the error:
Here are the things are tried:
The "run" script sent over with the .sub file contains lines:
export DISPLAY=99
Xvfb :99 -ac &
On my laptop with
docker run â I can see that Xvfb â creates file
/tmp/.X99-lock â
And everything works OK, i.e. the Xmgrace perl script creates the files.
If I run on HTCondor and ask to see the content with
ls -ls /tmp â and also with
ls -la $TEMP â I don't see that file.
In addition a
But I get the "Can't open display" error.printenv â command confirms that:
DISPLAY=99
I surmise that it means that the Xvfb run was not successful.
This module was pre-intalled on the Docker image as well as that of
xmgrace â.
Adding the line "use Test::NeedsDisplay;" within the perl script worked fine within a
docker run â on my Mac, but failed in the Docker Universe â with the error:
Can't locate Test/NeedsDisplay.pm in @INC (@INC contains...
THe
Xmgrace â module is always found in all cases. But not that one.
Hence that did not fix the DISPLAY problem either.
However, things worked fine on the
docker run â without this as well.
------
I have searched extensively without finding much information:
I only found 5 entries on
HTCondor-users Archives that match the word
xvfb âand most are very old.
I thought that I would find many more entries on the archives or even on Google about this.
Is there a better way to do that?
Thank you to all who might be inspired to reply!
----------------------------
Jean-Yves Sgro, Ph.D. Distinguished Scientist | Data Scientist II Biotechnology Center | Biochemistry Department University of Wisconsin-Madison - USA
Formerly at the Institute for Molecular Virology - VirusWorld web site - COVID-19: coloring books
|