-
Notifications
You must be signed in to change notification settings - Fork 21
/
run
executable file
·38 lines (33 loc) · 1.22 KB
/
run
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
#!/bin/bash
# start docker and emacs
docker run -d \
-v /tmp/.X11-unix:/tmp/.X11-unix:rw \
-v ${PWD}/project:/project \
-v $XAUTHORITY:/developer/.Xauthority \
-e DISPLAY=unix${DISPLAY} \
-e XAUTHORITY=/developer/.Xauthority \
-p 5000:5000 \
--device /dev/snd \
--name docker-vscode \
--entrypoint "urxvt" \
cmiles74/docker-vscode
# alternatively, you can map your settings into the container
# docker run -it \
# -v /tmp/.X11-unix:/tmp/.X11-unix:rw \
# -v $XAUTHORITY:/developer/.Xauthority \
# -v ${HOME}/.config/Code:/developer/.config/Code \
# -v ${HOME}/.vscode:/developer/.vscode \
# -v ${HOME}/.ssh:/developer/.ssh \
# -v ${HOME}/.gitconfig:/developer/.gitconfig \
# -v ${PWD}/project:/project \
# -v ${SSH_AUTH_SOCK}:/ssh_auth_sock \
# -e SSH_AUTH_SOCK=/ssh_auth_sock \
# -e DISPLAY=unix${DISPLAY} \
# -e XAUTHORITY=/developer/.Xauthority \
# -p 5000:5000 \
# --device /dev/snd \
# --name docker-vscode \
# --entrypoint "xterm" \
# cmiles74/docker-vscode
docker exec docker-vscode /developer/bin/start-vscode
docker exec docker-vscode /developer/bin/start-emacs