Public Repository

Last pushed: 14 days ago
Short Description
Provides docker for Salome Platform 8.2.0 with Nvidia driver
Full Description

To run this image please make sure that you have an X11 server installed and a Nvidia graphic card.
You should make sure that INDIRECTGLX is enabled.

On Windows install VcXsrv Windows X Server or Xming
On Mac OS X install XQuartz

To run the container:
xhost local:root
docker run -ti --rm -e DISPLAY \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-v $HOME/.Xauthority:/home/developer/.Xauthority \
--env QT_X11_NO_MITSHM=1 \
--net=host --pid=host --ipc=host trophime/salome-8.2.0:nvidia salome

Docker Pull Command
Owner
trophime

Comments (1)
winksaville
2 months ago

To enable INDIRECTGLX I added /etc/X11/xorg.conf.d/10-server-flags.conf with a section "ServerFlags" and rebooted:

$ cat /etc/X11/xorg.conf.d/10-server-flags.conf 
Section "ServerFlags"
   Option "IndirectGLX" "true"
EndSection

But when trying to run salome, I got "Failed to narrow the root naming context" error:

$ sudo docker run -ti --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/.Xauthority:/home/developer/.Xauthority --env QT_X11_NO_MITSHM=1 --net=host --pid=host --ipc=host trophime/salome-8.2.0:nvidia salomerunSalome running on wink-desktop
INFO:MainThread:Problem loading PortManager file: /opt/salome/appli_V8_2_0/USERS/.omniORB_PortManager.cfg
INFO:PortManager:Problem loading PortManager file: /opt/salome/appli_V8_2_0/USERS/.omniORB_PortManager.cfg
Searching for a free port for naming service: 2810 - OK
Searching Naming Service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Failed to narrow the root naming context
Traceback (most recent call last):
  File "/opt/salome/appli_V8_2_0/bin/salome/runSalome.py", line 622, in useSalome
    clt = startSalome(args, modules_list, modules_root_dir)
  File "/opt/salome/appli_V8_2_0/bin/salome/runSalome.py", line 419, in startSalome
    clt=orbmodule.client(args)
  File "/opt/salome/Salome-V8_2_0-univ/modules/KERNEL_V8_2_0/bin/salome/orbmodule.py", line 47, in __init__
    self.initNS(args or {})
  File "/opt/salome/Salome-V8_2_0-univ/modules/KERNEL_V8_2_0/bin/salome/orbmodule.py", line 86, in initNS
    sys.exit(1)
SystemExit: 1


--- Error during Salome launch ---

I contacted trophime and he suggested I needed to add my hostname to /etc/hosts. In my case /etc/hostame was wink-desktop:

$ cat /etc/hostname 
wink-desktop

So I added 127.0.0.1 wink-desktop.domain wink-desktop to my /etc/hosts:

$ cat /etc/hosts
#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1    localhost.localdomain    localhost
::1        localhost.localdomain    localhost

# For SALOME
127.0.0.1 wink-desktop.domain wink-desktop

And tried again and that time I was greeted with the Salome GUI, the command line output was:

$ sudo docker run -ti --rm -e DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix -v $HOME/.Xauthority:/home/developer/.Xauthority --env QT_X11_NO_MITSHM=1 --net=host --pid=host --ipc=host trophime/salome-8.2.0:nvidia salomerunSalome running on wink-desktop
INFO:MainThread:Problem loading PortManager file: /opt/salome/appli_V8_2_0/USERS/.omniORB_PortManager.cfg
INFO:PortManager:Problem loading PortManager file: /opt/salome/appli_V8_2_0/USERS/.omniORB_PortManager.cfg
Searching for a free port for naming service: 2810 - OK
Searching Naming Service + found in 0.1 seconds 
Searching /Kernel/Session in Naming Service +++++++Warning: this type (Study,objref) already exists, it will be ignored.
Warning: this type (pyobj,objref) already exists, it will be ignored.
+ found in 4.0 seconds 
Start SALOME, elapsed time :   4.3 seconds
****************************************************************
*    Warning: HYBRIDPLUGIN GUI resources are not found.
*    HYBRIDPLUGIN GUI will not be available.
****************************************************************
****************************************************************
*    Warning: HEXABLOCKPLUGIN GUI resources are not found.
*    HEXABLOCKPLUGIN GUI will not be available.
****************************************************************
****************************************************************
*    Warning: BLSURFPLUGIN GUI resources are not found.
*    BLSURFPLUGIN GUI will not be available.
****************************************************************
****************************************************************
*    Warning: GHS3DPRLPLUGIN GUI resources are not found.
*    GHS3DPRLPLUGIN GUI will not be available.
****************************************************************
****************************************************************
*    Warning: HexoticPLUGIN GUI resources are not found.
*    HexoticPLUGIN GUI will not be available.
****************************************************************
****************************************************************
*    Warning: NETGENPLUGIN GUI resources are not found.
*    NETGENPLUGIN GUI will not be available.
****************************************************************
****************************************************************
*    Warning: GHS3DPLUGIN GUI resources are not found.
*    GHS3DPLUGIN GUI will not be available.
****************************************************************

I hope this helps the next person,

-- Wink Saville