Open main menu

Changes

Docker install

1,281 bytes removed, 13:45, 26 October 2017
== Run the image on mac ==
On mac, first make sure XQuartz is running<source lang=bash>open -a XQuartz# In XQuartz -> Preferences > Security, make sure See the tick "Allow connections from network clients" is ON.</source>README on Github for newest info how to run:
Then set DISPLAY options. Verifu<source lang=bash># Its either of these. Check which one return IP addr.ipconfig getifaddr en1ipconfig getifaddr en0 # Run appropriatexhost + `ipconfig getifaddr en1`xhost + `ipconfig getifaddr en0`</source> Then make alias and run<source lang=bash>alias dr='docker run -ti --rm -e DISPLAY=$(ipconfig getifaddr en1)https:0 -v /tmp/github.X11-unix:/tmp/.X11-unix -v $PWD:/homecom/developer/work --name ubuntu_relax tlinnet/docker_relax' # Start relaxdr relax # Start relax in GUIdr relax -g # Start OpenDXdr dx # Try OpenMPIdr mpirun --versiondr mpirun -np 2 echo "hello world"dr mpirun --report-bindings -np 2 echo "hello world"</source> To make this easier, consider adding this to HOME/.bash_profile<source lang=bash># Start docker, if it is not runningalias drdocker='open -a /Applications/Docker.app/Contents/MacOS/Docker'# Start XQuartz, if it is not runningalias drx='open -a XQuartz; xhost + `ipconfig getifaddr en1`'# Alias the docker run commandalias dr='docker run -ti --rm -e DISPLAY=$(ipconfig getifaddr en1):0 -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/home/developer/work --name ubuntu_relax tlinnet/docker_relax'</source>runmac
== Update relax code ==
Trusted, Bureaucrats
1,382

edits