-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker_run_windows.sh
executable file
·41 lines (37 loc) · 1.35 KB
/
docker_run_windows.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env bash
set -euo pipefail
DIR=$(pwd)
echo ${DIR} ${HOME}
eval `ssh-agent`;
ssh-add ~/.ssh/id_rsa;
docker run\
--rm\
-it\
--privileged\
--gpus=all\
--name games-dock-emacs\
--volume $SSH_AUTH_SOCK:/ssh-agent\
--env SSH_AUTH_SOCK=/ssh-agent\
-e DISPLAY=host.docker.internal:0.0\
-e XAUTH=${HOME}/.Xauthority\
--mount type=bind,src=${DIR},dst=${HOME}/Workspace\
--mount type=bind,src=${HOME}/.zshrc,dst=${HOME}/.zshrc\
-v /etc/timezone:/etc/timezone:ro\
-v /etc/localtime:/etc/localtime:ro\
-v /tmp/.X11-unix:/tmp/.X11-unix:rw\
-v ${HOME}/.telega:${HOME}/.telega\
-v /usr/bin/xdg-open:/usr/bin/xdg-open:ro\
-v ${HOME}/.local:${HOME}/.local\
-v ${HOME}/.lein:${HOME}/.lein\
-v ${HOME}/.cljs:${HOME}/.cljs\
-v ${HOME}/.clojure:${HOME}/.clojure\
-v ${HOME}/.m2:${HOME}/.m2\
-v ${HOME}/.bashrc:${HOME}/.bashrc\
-v ${HOME}/.oh-my-zsh:${HOME}/.oh-my-zsh\
-v ${HOME}/.ssh/:${HOME}/.ssh\
-v ${HOME}/.mozilla:${HOME}/.mozilla\
-v ${DIR}/.zsh_history:${HOME}/.zsh_history\
-v ${DIR}/.zshrc:${HOME}/.zshrc\
-v ${DIR}/modules/doom.d:${HOME}/.doom.d\
-v ${DIR}/modules/emacs.d:${HOME}/.emacs.d\
gamedev:latest emacs -fs -L /emacs-application-framework --eval "(require 'eaf)"