bcgsc / orca

:whale: Genomics Research Container Architecture
http://www.bcgsc.ca/services/orca
GNU General Public License v3.0
48 stars 13 forks source link

Update orca.hackton #40

Closed tmozgach closed 6 years ago

tmozgach commented 6 years ago

@sjackman could you please look at scripts:

This one for creation containers manually:

FILES_LOCATION=/orca_repo/etc

PROJECT=hackseq17_6

docker run -t --name $PROJECT -m 100GB --memory-reservation 20GB -v $FILES_LOCATION/hosts:/etc/hosts:ro -v /projects/hackathon/2017:/home/projects -v $FILES_LOCATION/passwd_hs17:/etc/passwd:ro -v $FILES_LOCATION/group_hs17:/etc/group:ro -w /home/projects/$PROJECT -v /home/userhome:/home/userhome -v /tmp/.X11-unix:/tmp/.X11-unix --net host bcgsc/orca-hackseq:2017.10.12

This one is log in: https://github.com/bcgsc/orca/blob/master/scripts/orca.hackton

sjackman commented 6 years ago

Note that hackton is misspelt, should be hackathon. Please rename scripts/orca.hackton to scripts/orca-hackathon.

sjackman commented 6 years ago
exec docker exec -it  -u $(id -u):$(id -g) $(id -gn) /bin/bash -l -c "export XAUTHORITY=/home/hackseq17/$USER/.Xauthority && export DISPLAY=${DISPLAY} && /bin/bash -l"

Try

exec docker exec -it  -u $(id -u):$(id -g) $(id -gn) /usr/bin/env XAUTHORITY=/home/hackseq17/$USER/.Xauthority DISPLAY=${DISPLAY} /bin/bash -l