== Dockerfile ==
The Dockerfile for the build can be seen here:
* https://github.com/nmr-relax/relax/blob/master/devel_scriptstlinnet/Docker/Ubuntu_16_04_relax/Dockerfiledocker_relax* https://cloudhub.docker.com/swarm/tlinnet/repository/dockerr/tlinnet/relax/general
To get image
== 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 optionshttps://github. Verifu<source lang=bash>com/tlinnet/docker_relax/blob/master/README.md# Its either of these. Check which one return IP addr.ipconfig getifaddr en1ipconfig getifaddr en0runmac
# Run appropriate== Update relax code ==xhost + `ipconfig getifaddr en1`xhost + `ipconfig getifaddr en0`</source>To update, do this
Then make alias and run
<source lang=bash>
alias 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 relax' # Start relaxdr relax # Start relax in GUIGo into containerdr relax -g
# Start OpenDXInside containerdr 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 cd $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 commandrelaxalias 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 relax'git pull
</source>
== See also ==
[[Category:Installation]]