Skip to content

Commit

Permalink
update mac interface to use ssh for more robust X11 forwarding
Browse files Browse the repository at this point in the history
  • Loading branch information
evbauer committed Mar 31, 2020
1 parent c3d5d27 commit a565b2d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions mac_dockerMESA.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,17 @@ if [[ $? != 0 ]];then
exit 1
fi

docker run -d --rm \
--name mesa_dock \
-p 6158:22 \
-v "$PWD/docker_work":/home/docker/docker_work \
evbauer/mesa_lean:"$tag" \
sleep infinity

xhost
ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
#echo $ip
xhost + $ip
docker exec --user root mesa_dock service ssh start

echo "password is mesa"
ssh -Y -p 6158 docker@localhost

docker kill mesa_dock

docker run -it --rm \
-e DISPLAY=$ip:0 \
-e OMP_NUM_THREADS=$(getconf _NPROCESSORS_ONLN) \
-v "$PWD/docker_work":/home/docker/docker_work \
evbauer/mesa_lean:"$tag"

0 comments on commit a565b2d

Please sign in to comment.