-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker_run.sh
executable file
·42 lines (40 loc) · 1.49 KB
/
docker_run.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
42
#!/usr/bin/env bash
set -euo pipefail
DIR=$(pwd)
docker run\
--rm\
--privileged\
-it\
-p 8080:8080\
-p 9630:9630\
--name games-dock-emacs\
--volume $SSH_AUTH_SOCK:/ssh-agent\
--device /dev/dri:/dev/dri\
--env SSH_AUTH_SOCK=/ssh-agent\
-e DISPLAY=unix$DISPLAY\
-e PULSE_SERVER=unix:$XDG_RUNTIME_DIR/pulse/native \
-e XAUTH=${HOME}/.Xauthority\
--mount type=bind,src=${DIR},dst=${HOME}/Workspace\
-v /tmp/.X11-unix:/tmp/.X11-unix:rw\
-v /etc/timezone:/etc/timezone:ro\
-v /etc/localtime:/etc/localtime:ro\
-v /etc/machine-id:/etc/machine-id:ro\
-v ${HOME}/.telega:${HOME}/.telega\
-v ${XDG_RUNTIME_DIR}/pulse:${XDG_RUNTIME_DIR}/pulse \
-v ${XAUTHORITY}:${HOME}/.Xauthority\
-v ${HOME}/.config:${HOME}/.config\
-v ${HOME}/.gitconfig:${HOME}/.gitconfig\
-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 ${HOME}/.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\
docker.io/library/gamedev:latest emacs -fs